From 3f195a9046dc935120cd9c004b3d35fc0e16d5ef Mon Sep 17 00:00:00 2001 From: Narimm Date: Tue, 9 Feb 2016 11:41:33 +1000 Subject: [PATCH] Add LockDownCommands to Redis Branch *Add LockDown *Add LockDownStatus *Add LockDownEnd --- .../geSuit/commands/LockDownCommands.java | 76 +++++++++ .../geSuit/config/ModerationConfig.java | 6 + .../net/cubespace/geSuit/geSuitPlugin.java | 14 +- .../geSuit/moderation/LockdownListener.java | 39 +++++ .../geSuit/moderation/LockdownManager.java | 161 ++++++++++++++++++ .../remote/moderation/LockDownActions.java | 34 ++++ .../moderation/commands/LockDownCommands.java | 83 +++++++++ 7 files changed, 406 insertions(+), 7 deletions(-) create mode 100644 bungee/src/main/java/net/cubespace/geSuit/commands/LockDownCommands.java create mode 100644 bungee/src/main/java/net/cubespace/geSuit/moderation/LockdownListener.java create mode 100644 bungee/src/main/java/net/cubespace/geSuit/moderation/LockdownManager.java create mode 100644 common/src/main/java/net/cubespace/geSuit/remote/moderation/LockDownActions.java create mode 100644 modules/moderation/src/main/java/net/cubespace/geSuit/moderation/commands/LockDownCommands.java diff --git a/bungee/src/main/java/net/cubespace/geSuit/commands/LockDownCommands.java b/bungee/src/main/java/net/cubespace/geSuit/commands/LockDownCommands.java new file mode 100644 index 00000000..71ca1d30 --- /dev/null +++ b/bungee/src/main/java/net/cubespace/geSuit/commands/LockDownCommands.java @@ -0,0 +1,76 @@ +/* + * Copyright 2016 AddstarMC + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package net.cubespace.geSuit.commands; + +import net.cubespace.geSuit.core.commands.Command; +import net.cubespace.geSuit.core.commands.CommandPriority; +import net.cubespace.geSuit.core.commands.Optional; +import net.cubespace.geSuit.core.commands.Varargs; +import net.cubespace.geSuit.core.objects.DateDiff; +import net.cubespace.geSuit.core.objects.Result; +import net.cubespace.geSuit.remote.moderation.LockDownActions; +import net.md_5.bungee.api.ChatColor; +import net.md_5.bungee.api.CommandSender; +import net.md_5.bungee.api.connection.ProxiedPlayer; + +/** + * Created by Narimm on 6/02/2016. + */ +@SuppressWarnings("deprecation") +public class LockDownCommands { + private LockDownActions actions; + + + public LockDownCommands(LockDownActions actions) { + this.actions = actions; + } + + @Command(name="!LockDown", permission="gesuit.lockdown.command.lockdown", usage="/