Removed potatoes... They lag the game

This commit is contained in:
alisolarflare 2016-11-17 19:24:31 -05:00
parent 0a866df10e
commit 8ea667ed0b
5 changed files with 3 additions and 10 deletions

View file

@ -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){

View file

@ -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){

View file

@ -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;
}

View file

@ -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;
}

View file

@ -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());
}