[Command] CloseRealm
Well, I was looking through help section, and I saw this one post asking for a /closerealm command. I saw noone post anything that was helpful except to do "/ka". Funny. I coded this really quickly a while back, so I'm like, good quick command. Well here you go.
ENJOY
Code:
internal class CloseRealmCmd : Command
{
public CloseRealmCmd()
: base("closerealm", 80)
{
}
protected override bool Process(Player player, RealmTime time, string[] args)
{
if (player.Owner is GameWorld)
{
var gw = player.Owner as GameWorld;
gw.Overseer.InitCloseRealm();
return true;
}
else
{
return false;
}
}
}
