Class SetHomeCommand

java.lang.Object
fr.fuzeblocks.homeplugin.other.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 Details

    • SetHomeCommand

      public SetHomeCommand()
  • Method Details

    • 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
    • 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