diff --git a/ReallifeGamemode.Server/Commands/UserCommands.cs b/ReallifeGamemode.Server/Commands/UserCommands.cs index 9a170770..73a149df 100644 --- a/ReallifeGamemode.Server/Commands/UserCommands.cs +++ b/ReallifeGamemode.Server/Commands/UserCommands.cs @@ -9,11 +9,26 @@ using ReallifeGamemode.Server.Managers; using ReallifeGamemode.Server.Services; using ReallifeGamemode.Server.Types; using ReallifeGamemode.Server.Util; +using ReallifeGamemode.Services; namespace ReallifeGamemode.Server.Commands { internal class UserCommands : Script { + [Command("id", "~m~Benutzung: ~s~/id")] + public void CmdUserDice(Player player, String targetname) + { + Player target = PlayerService.GetPlayerByNameOrId(targetname); + + if (target == null) + { + player.SendChatMessage("~c~Spieler ist nicht online."); + } else + { + player.SendChatMessage("~c~ID: (" + target.Id + ") " + target.Name); + } + } + [Command("dice", "~m~Benutzung: ~s~/dice")] public void CmdUserDice(Player player) {