From 8ea667ed0b25bae8b51afd920a7a4058b9d58327 Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Thu, 17 Nov 2016 19:24:31 -0500 Subject: [PATCH] Removed potatoes... They lag the game --- src/alisolarflare/components/BaseCommand.java | 2 +- src/alisolarflare/components/Component.java | 1 - .../components/magic/tricks/AliArrowListener.java | 1 - .../components/metrics/commands/GetLoginMetrics.java | 4 +--- .../components/metrics/listeners/PlayerJoinListener.java | 5 +---- 5 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/alisolarflare/components/BaseCommand.java b/src/alisolarflare/components/BaseCommand.java index ad0dcd2..31980f1 100644 --- a/src/alisolarflare/components/BaseCommand.java +++ b/src/alisolarflare/components/BaseCommand.java @@ -16,7 +16,7 @@ public abstract class BaseCommand extends TBMCCommandBase{ ItemStack potato = new ItemStack(Material.BAKED_POTATO); potato.getItemMeta().setDisplayName("Spicy Debug Potato"); potato.getItemMeta().setLore(message); - potato.addEnchantment(Enchantment.ARROW_FIRE, 10); + potato.addUnsafeEnchantment(Enchantment.ARROW_FIRE, 10); return potato; } public static ItemStack CreateDebugPotato(String message){ diff --git a/src/alisolarflare/components/Component.java b/src/alisolarflare/components/Component.java index 13bfeab..86a31e7 100644 --- a/src/alisolarflare/components/Component.java +++ b/src/alisolarflare/components/Component.java @@ -50,7 +50,6 @@ public abstract class Component{ } public void saveData(FileConfiguration config, String pathToData, Object data){ - config.set("moduledata." + this.getClassName() + "." + pathToData, data); } public Object getData(FileConfiguration config, String pathToData, Object data){ diff --git a/src/alisolarflare/components/magic/tricks/AliArrowListener.java b/src/alisolarflare/components/magic/tricks/AliArrowListener.java index 10ee0f0..9816beb 100644 --- a/src/alisolarflare/components/magic/tricks/AliArrowListener.java +++ b/src/alisolarflare/components/magic/tricks/AliArrowListener.java @@ -31,7 +31,6 @@ public class AliArrowListener implements Listener { for (String permittedUsername : AliArrowTask.permittedUsers){ if(permittedUsername.equalsIgnoreCase(username)){ - BaseCommand.SendDebugPotato(player, "HAHAHAHHAHA NICE"); new AliArrowTask(arrow,username).runTaskTimer(plugin, 2, 1); break; } diff --git a/src/alisolarflare/components/metrics/commands/GetLoginMetrics.java b/src/alisolarflare/components/metrics/commands/GetLoginMetrics.java index 1555df6..59a6828 100644 --- a/src/alisolarflare/components/metrics/commands/GetLoginMetrics.java +++ b/src/alisolarflare/components/metrics/commands/GetLoginMetrics.java @@ -17,10 +17,8 @@ public class GetLoginMetrics extends ModCommand{ @Override public boolean OnCommand(CommandSender sender, String alias, String[] args) { Player player = (Player) sender; - SendDebugPotato(player, "FIREEED"); for (String metric : module.metricsList){ - SendDebugPotato(player, module.metricsList); - SendDebugPotato(player, metric); + player.sendMessage(metric); } return true; } diff --git a/src/alisolarflare/components/metrics/listeners/PlayerJoinListener.java b/src/alisolarflare/components/metrics/listeners/PlayerJoinListener.java index dcc5a6b..45cbb20 100644 --- a/src/alisolarflare/components/metrics/listeners/PlayerJoinListener.java +++ b/src/alisolarflare/components/metrics/listeners/PlayerJoinListener.java @@ -4,7 +4,6 @@ import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerJoinEvent; -import alisolarflare.components.BaseCommand; import alisolarflare.components.metrics.MetricsComponent; public class PlayerJoinListener implements Listener{ @@ -15,9 +14,7 @@ public class PlayerJoinListener implements Listener{ } @EventHandler public void onPlayerJoin(PlayerJoinEvent event){ - BaseCommand.SendDebugPotato(event.getPlayer(), "PLAYERJOIIIN"); - BaseCommand.SendDebugPotato(event.getPlayer(), "loginlog."+System.currentTimeMillis()+event.getPlayer().getName()); - module.saveData(module.metricsYml, "loginlog."+System.currentTimeMillis()+event.getPlayer().getName(), event.getPlayer().getName()); + //module.saveData(module.metricsYml, "loginlog."+System.currentTimeMillis()+event.getPlayer().getName(), event.getPlayer().getName()); module.metricsList.add("loginlog."+System.currentTimeMillis()+event.getPlayer().getName()); }