/stopserver -gracefully shutsdown server

/stopserver -gracefully shutsdown server

Postby HelloWorldCool » 20 Nov 2011, 05:23

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;

namespace MCDzienny
{
   public class CmdStopServer : Command
   {
      public override string name { get { return "stopserver"; } }
      public override string shortcut { get { return "stop"; } }
      public override string type { get { return "other"; } }
      public override bool museumUsable { get { return false; } }
      public override LevelPermission defaultRank { get { return LevelPermission.Nobody; } }
      public override void Use(Player p, string message)
      {
      if (p == null) { Player.SendMessage(p, "You have failed to shutdown the server"); return; }
   
         Player.GlobalMessage(p.name + " has execute shutdown!");
            Command.all.Find("shutdown").Use(null, "10" + " Shutting down...Bye2 everyone :D");
      }
      public override void Help(Player p) 
      {
         Player.SendMessage(p, "/StopServer - Gracefully shutsdown the server ");
      }
   }
}


I usually just pick a person on the server and do "/make kingt3 stop"
Download fCraft maps! - viewtopic.php?f=25&t=3012!



Note: The Developer(s) of MCDzienny have resigned and the software is no longer supported.
Errors are bound to occur and Mojang has not attempted to resolve them.
User avatar
HelloWorldCool
 
Posts: 867
Joined: 18 Oct 2011, 00:19
Location: MCDzienny Forums, HelloWorldCool Forums

Return to Custom Commands

Who is online

Users browsing this forum: No registered users and 5 guests

cron