/fakesdown Fake a Server shutdown on someone!

/fakesdown Fake a Server shutdown on someone!

Postby 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
User avatar
Leeizazombie
 
Posts: 536
Joined: 10 Jun 2013, 17:45
Location: Ireland.

Re: /fakesdown Fake a Server shutdown on someone!

Postby Clowny » 29 Jul 2013, 16:23

Haha nice <ok>
Founder Of MC Classic Hosting Community http://mcclassichosting.webs.com
Founder of MC Classic Software MCReborn http://mcreborn.tk
Professional Hoster and Basic C# Coder
Image
User avatar
Clowny
 
Posts: 112
Joined: 14 Jul 2013, 03:53

Re: /fakesdown Fake a Server shutdown on someone!

Postby lucasds12 » 02 Aug 2013, 07:49

HelloWorldCool's version does it on all players and basically I don't know if it kicks you or not but I THINK it does.
Code: Select all
/*
   Auto-generated command skeleton class.

   Use this as a basis for custom commands implemented via the MCDzienny scripting framework.
   File and class should be named a specific way.  For example, /update is named 'CmdUpdate.cs' for the file, and 'CmdUpdate' for the class.
*/

// Add any other using statements you need up here, of course.
// As a note, MCDzienny is designed for .NET 3.5.
using System;
using System.Threading;

namespace MCDzienny
{
    public class Cmdfakeshutdown : Command
    {
        public override string name { get { return "fakeshutdown"; } }
        public override string shortcut { get { return "fs"; } }
        public override string type { get { return "other"; } }
        public override bool museumUsable { get { return true; } }
        public override LevelPermission defaultRank { get { return LevelPermission.Admin; } }
        public override void Use(Player p, string message)
        {
            Player.GlobalMessage("%4Server is going to shutdown in 10 seconds");
            Player.GlobalMessage("%4Server shutdown in 10 seconds");
            Thread.Sleep(1000);
            Player.GlobalMessage("%4Server shutdown in 9 seconds");
            Thread.Sleep(1000);
            Player.GlobalMessage("%4Server shutdown in 8 seconds");
            Thread.Sleep(1000);
            Player.GlobalMessage("%4Server shutdown in 7 seconds");
            Thread.Sleep(1000);
            Player.GlobalMessage("%4Server shutdown in 6 seconds");
            Thread.Sleep(1000);
            Player.GlobalMessage("%4Server shutdown in 5 seconds");
            Thread.Sleep(1000);
            Player.GlobalMessage("%4Server shutdown in 4 seconds");
            Thread.Sleep(1000);
            Player.GlobalMessage("%4Server shutdown in 3 seconds");
            Thread.Sleep(1000);
            Player.GlobalMessage("%4Server shutdown in 2 seconds");
            Thread.Sleep(1000);
            Player.GlobalMessage("%4Server shutdown in 1 seconds");

            foreach (Player pl in Player.players)
            {
                if (pl != null)
                    try
                    {
                        Player.GlobalMessage("&c- " + pl.color + pl.prefix + pl.name + Server.DefaultColor + " kicked (Server shutdown. Rejoin in 10 seconds.)");
                        Thread.Sleep(500);
                    }
                    catch
                    { }
            }
        }


        public override void Help(Player p)
        {
            Player.SendMessage(p, "/fakeshutdown - funny and awesome");

        }
    }
}


All credit to HelloWorldCool, he's the one that made the command.
-Lucas
There is only one thing I do in life, that's contributing here.
lucasds12
 
Posts: 334
Joined: 17 Apr 2013, 16:17
Location: In the deep caves.

Re: /fakesdown Fake a Server shutdown on someone!

Postby kallentyyppi » 04 Aug 2013, 22:08

xD smells like fun and useful against players which is annoying but u wanna them come back
Host of server which is'nt port forwarded
-------------------------------------------------------------------------------------------------------------------------
kallentyyppi
 
Posts: 6
Joined: 04 Aug 2013, 21:17


Return to Custom Commands

Who is online

Users browsing this forum: No registered users and 5 guests

cron