mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
22 lines
640 B
Java
22 lines
640 B
Java
package me.william278.huskhomes2.commands;
|
|
|
|
import me.william278.huskhomes2.MessageManager;
|
|
import me.william278.huskhomes2.teleport.SettingHandler;
|
|
import org.bukkit.command.Command;
|
|
import org.bukkit.entity.Player;
|
|
|
|
public class DelhomeCommand extends CommandBase {
|
|
|
|
@Override
|
|
protected boolean onCommand(Player p, Command command, String label, String[] args) {
|
|
if (args.length == 1) {
|
|
String homeName = args[0];
|
|
SettingHandler.deleteHome(p, homeName);
|
|
} else {
|
|
MessageManager.sendMessage(p, "error_invalid_syntax", command.getUsage());
|
|
}
|
|
return true;
|
|
}
|
|
|
|
}
|