Removed potatoes... They lag the game
This commit is contained in:
parent
0a866df10e
commit
8ea667ed0b
5 changed files with 3 additions and 10 deletions
|
@ -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){
|
||||
|
|
|
@ -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){
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue