Add whoami command

This commit is contained in:
Business Goose 2022-03-28 17:46:58 +01:00
parent e1e7bf784e
commit e3859b2d4d
No known key found for this signature in database
GPG key ID: 77DCA801362E9645

View file

@ -0,0 +1,15 @@
package me.StevenLawson.TotalFreedomMod.commands;
import me.StevenLawson.TotalFreedomMod.player.PlayerRank;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@CommandPermissions(level = AdminLevel.ALL, source = SourceType.BOTH)
public class Command_whoami extends FreedomCommand {
@Override
public boolean run(CommandSender sender, Player sender_p, Command cmd, String commandLabel, String[] args, boolean senderIsConsole) {
playerMsg(PlayerRank.fromSender(sender).name());
return true;
}
}