Class SetHomeCommand

java.lang.Object
fr.fuzeblocks.homeplugin.commands.home.SetHomeCommand
All Implemented Interfaces:
org.bukkit.command.CommandExecutor

public class SetHomeCommand extends Object implements org.bukkit.command.CommandExecutor
Command to set a home at the player's current location.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isFair(org.bukkit.entity.Player player)
    Checks if the player's location is valid for setting a home.
    static boolean
    isOnFloatingPlatform(org.bukkit.Location loc)
    Checks if the location is on a floating platform.
    boolean
    onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SetHomeCommand

      public SetHomeCommand()
  • Method Details

    • onCommand

      public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args)
      Specified by:
      onCommand in interface org.bukkit.command.CommandExecutor
    • isFair

      public static boolean isFair(org.bukkit.entity.Player player)
      Checks if the player's location is valid for setting a home.
      Parameters:
      player - The player
      Returns:
      true if location is fair, false otherwise
    • isOnFloatingPlatform

      public static boolean isOnFloatingPlatform(org.bukkit.Location loc)
      Checks if the location is on a floating platform.
      Parameters:
      loc - The location to check
      Returns:
      true if on floating platform, false otherwise