command /id added
This commit is contained in:
@@ -9,11 +9,26 @@ using ReallifeGamemode.Server.Managers;
|
|||||||
using ReallifeGamemode.Server.Services;
|
using ReallifeGamemode.Server.Services;
|
||||||
using ReallifeGamemode.Server.Types;
|
using ReallifeGamemode.Server.Types;
|
||||||
using ReallifeGamemode.Server.Util;
|
using ReallifeGamemode.Server.Util;
|
||||||
|
using ReallifeGamemode.Services;
|
||||||
|
|
||||||
namespace ReallifeGamemode.Server.Commands
|
namespace ReallifeGamemode.Server.Commands
|
||||||
{
|
{
|
||||||
internal class UserCommands : Script
|
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")]
|
[Command("dice", "~m~Benutzung: ~s~/dice")]
|
||||||
public void CmdUserDice(Player player)
|
public void CmdUserDice(Player player)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user