From c50fb52a88c8aaf9d940132af3e8dbf04406eb7c Mon Sep 17 00:00:00 2001 From: Shaun Bennett Date: Mon, 4 Jan 2016 14:21:21 -0500 Subject: [PATCH] Disable New Years Countdown --- Plugins/Mineplex.Hub/src/mineplex/hub/Hub.java | 2 -- .../src/mineplex/hub/modules/NewYearCountdown.java | 13 ------------- 2 files changed, 15 deletions(-) diff --git a/Plugins/Mineplex.Hub/src/mineplex/hub/Hub.java b/Plugins/Mineplex.Hub/src/mineplex/hub/Hub.java index 7cc8e7def..41b2081a3 100644 --- a/Plugins/Mineplex.Hub/src/mineplex/hub/Hub.java +++ b/Plugins/Mineplex.Hub/src/mineplex/hub/Hub.java @@ -184,8 +184,6 @@ public class Hub extends JavaPlugin implements IRelation //Updates getServer().getScheduler().scheduleSyncRepeatingTask(this, new Updater(this), 1, 1); - - new NewYearCountdown(this); } @Override diff --git a/Plugins/Mineplex.Hub/src/mineplex/hub/modules/NewYearCountdown.java b/Plugins/Mineplex.Hub/src/mineplex/hub/modules/NewYearCountdown.java index 1c0766fa8..9ebd311a6 100644 --- a/Plugins/Mineplex.Hub/src/mineplex/hub/modules/NewYearCountdown.java +++ b/Plugins/Mineplex.Hub/src/mineplex/hub/modules/NewYearCountdown.java @@ -83,19 +83,6 @@ public class NewYearCountdown extends MiniPlugin _targetTime = System.currentTimeMillis() + (seconds * 1000); } - @EventHandler - public void cmd(PlayerCommandPreprocessEvent e) - { - if (!e.getPlayer().getName().equalsIgnoreCase("WilliamTiger")) - return; - - if (e.getMessage().equalsIgnoreCase("/lmao")) - { - e.setCancelled(true); - start(30); - } - } - @EventHandler public void updateStage(UpdateEvent e) {