by Leeizazombie » 29 Jul 2013, 08:05
/fakesdown or /fsd, using this command on a player will kick them off and they will see the default server shutdown message tricking them into thinking it was just the the server went down, also when the command is used, Global chat will show the the player only disconnected!
- Code: Select all
using System;
namespace MCDzienny
{
public class CmdFakesdown : Command
{
public override string name { get { return "fakesdown"; } }
public override string shortcut { get { return "fsd"; } }
public override string type { get { return "mod"; } }
public override bool museumUsable { get { return true; } }
public override LevelPermission defaultRank { get { return LevelPermission.Operator; } }
public override void Use(Player p, string message)
{
if (String.IsNullOrEmpty(message) || message.IndexOf(' ') != -1) { Help(p); return; }
Player who = Player.Find(message);
if (who == null)
{
Player.SendMessage(p, "Player could not be found.");
return;
}
{
Command.all.Find("kick").Use(p, who.PublicName + " " + Server.customShutdownMessage);
}
}
public override void Help(Player p)
{
Player.SendMessage(p, "/fakesdown - Kick a player, and trick them to thinking it was the server. /fsd Leebyrne115.");
}
}
}
Owner of:
LeeIzaZombie Freebuild and Lava Survival V2 (Shut Down and updated)
LeeIzaZombie Survival (Comming back soon)
Contact:
Skype: leeizazombie
IRC: irc.geekshed.net, #leeizazombie, #mcclassichosting