From dd500b387a958f54d33df250c673cab6b9b38843 Mon Sep 17 00:00:00 2001 From: UclCommander Date: Thu, 3 Sep 2015 10:54:43 -0500 Subject: [PATCH 1/3] Finally make this how it should of been. --- Commands/CmdReloadControllers.cs | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Commands/CmdReloadControllers.cs diff --git a/Commands/CmdReloadControllers.cs b/Commands/CmdReloadControllers.cs new file mode 100644 index 000000000..e0a2c1307 --- /dev/null +++ b/Commands/CmdReloadControllers.cs @@ -0,0 +1,41 @@ +ircControllers = PlayerList.Load("IRC_Controllers.txt", null); + +/* + Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy) + + Dual-licensed under the Educational Community License, Version 2.0 and + the GNU General Public License, Version 3 (the "Licenses"); you may + not use this file except in compliance with the Licenses. You may + obtain a copy of the Licenses at + + http://www.opensource.org/licenses/ecl2.php + http://www.gnu.org/licenses/gpl-3.0.html + + Unless required by applicable law or agreed to in writing, + software distributed under the Licenses are distributed on an "AS IS" + BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + or implied. See the Licenses for the specific language governing + permissions and limitations under the Licenses. +*/ +namespace MCGalaxy.Commands +{ + public sealed class CmdAbort : Command + { + public override string name { get { return "reloadcontrollers"; } } + public override string shortcut { get { return "rlctl"; } } + public override string type { get { return "mod"; } } + public override bool museumUsable { get { return true; } } + public override LevelPermission defaultRank { get { return LevelPermission.Operator; } } + public CmdAbort() { } + + public override void Use(Player p, string message) + { + Server.ircControllers = PlayerList.Load("IRC_Controllers.txt", null); + Player.SendMessage(p, "IRC Controllers reloaded!"); + } + public override void Help(Player p) + { + Player.SendMessage(p, "/reloadcontrollers - Reloads IRC Controllers."); + } + } +} From 61ebef3911d095d6403563e61694dfed858231e6 Mon Sep 17 00:00:00 2001 From: UclCommander Date: Thu, 3 Sep 2015 10:56:24 -0500 Subject: [PATCH 2/3] Remove derp --- Commands/CmdReloadControllers.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Commands/CmdReloadControllers.cs b/Commands/CmdReloadControllers.cs index e0a2c1307..637cd179c 100644 --- a/Commands/CmdReloadControllers.cs +++ b/Commands/CmdReloadControllers.cs @@ -1,5 +1,3 @@ -ircControllers = PlayerList.Load("IRC_Controllers.txt", null); - /* Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy) From aa56599c2a7cbbb4e9a0de58a384affdce9e79fe Mon Sep 17 00:00:00 2001 From: UclCommander Date: Thu, 3 Sep 2015 10:58:29 -0500 Subject: [PATCH 3/3] Fix idiot move. I dislike C# --- Commands/CmdReloadControllers.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Commands/CmdReloadControllers.cs b/Commands/CmdReloadControllers.cs index 637cd179c..b665c84e3 100644 --- a/Commands/CmdReloadControllers.cs +++ b/Commands/CmdReloadControllers.cs @@ -17,14 +17,14 @@ */ namespace MCGalaxy.Commands { - public sealed class CmdAbort : Command + public sealed class CmdReloadControllers : Command { public override string name { get { return "reloadcontrollers"; } } public override string shortcut { get { return "rlctl"; } } public override string type { get { return "mod"; } } public override bool museumUsable { get { return true; } } public override LevelPermission defaultRank { get { return LevelPermission.Operator; } } - public CmdAbort() { } + public CmdReloadControllers() { } public override void Use(Player p, string message) {