Class SetHomeCommand
java.lang.Object
fr.fuzeblocks.homeplugin.commands.home.SetHomeCommand
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
Command to set a home at the player's current location.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisFair(org.bukkit.entity.Player player) Checks if the player's location is valid for setting a home.static booleanisOnFloatingPlatform(org.bukkit.Location loc) Checks if the location is on a floating platform.booleanonCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args)
-
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:
onCommandin interfaceorg.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
-