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);
|
ItemStack potato = new ItemStack(Material.BAKED_POTATO);
|
||||||
potato.getItemMeta().setDisplayName("Spicy Debug Potato");
|
potato.getItemMeta().setDisplayName("Spicy Debug Potato");
|
||||||
potato.getItemMeta().setLore(message);
|
potato.getItemMeta().setLore(message);
|
||||||
potato.addEnchantment(Enchantment.ARROW_FIRE, 10);
|
potato.addUnsafeEnchantment(Enchantment.ARROW_FIRE, 10);
|
||||||
return potato;
|
return potato;
|
||||||
}
|
}
|
||||||
public static ItemStack CreateDebugPotato(String message){
|
public static ItemStack CreateDebugPotato(String message){
|
||||||
|
|
|
@ -50,7 +50,6 @@ public abstract class Component{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void saveData(FileConfiguration config, String pathToData, Object data){
|
public void saveData(FileConfiguration config, String pathToData, Object data){
|
||||||
|
|
||||||
config.set("moduledata." + this.getClassName() + "." + pathToData, data);
|
config.set("moduledata." + this.getClassName() + "." + pathToData, data);
|
||||||
}
|
}
|
||||||
public Object getData(FileConfiguration config, String pathToData, Object data){
|
public Object getData(FileConfiguration config, String pathToData, Object data){
|
||||||
|
|
|
@ -31,7 +31,6 @@ public class AliArrowListener implements Listener {
|
||||||
|
|
||||||
for (String permittedUsername : AliArrowTask.permittedUsers){
|
for (String permittedUsername : AliArrowTask.permittedUsers){
|
||||||
if(permittedUsername.equalsIgnoreCase(username)){
|
if(permittedUsername.equalsIgnoreCase(username)){
|
||||||
BaseCommand.SendDebugPotato(player, "HAHAHAHHAHA NICE");
|
|
||||||
new AliArrowTask(arrow,username).runTaskTimer(plugin, 2, 1);
|
new AliArrowTask(arrow,username).runTaskTimer(plugin, 2, 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,8 @@ public class GetLoginMetrics extends ModCommand{
|
||||||
@Override
|
@Override
|
||||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||||
Player player = (Player) sender;
|
Player player = (Player) sender;
|
||||||
SendDebugPotato(player, "FIREEED");
|
|
||||||
for (String metric : module.metricsList){
|
for (String metric : module.metricsList){
|
||||||
SendDebugPotato(player, module.metricsList);
|
player.sendMessage(metric);
|
||||||
SendDebugPotato(player, metric);
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,6 @@ import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
import org.bukkit.event.player.PlayerJoinEvent;
|
import org.bukkit.event.player.PlayerJoinEvent;
|
||||||
|
|
||||||
import alisolarflare.components.BaseCommand;
|
|
||||||
import alisolarflare.components.metrics.MetricsComponent;
|
import alisolarflare.components.metrics.MetricsComponent;
|
||||||
|
|
||||||
public class PlayerJoinListener implements Listener{
|
public class PlayerJoinListener implements Listener{
|
||||||
|
@ -15,9 +14,7 @@ public class PlayerJoinListener implements Listener{
|
||||||
}
|
}
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onPlayerJoin(PlayerJoinEvent event){
|
public void onPlayerJoin(PlayerJoinEvent event){
|
||||||
BaseCommand.SendDebugPotato(event.getPlayer(), "PLAYERJOIIIN");
|
//module.saveData(module.metricsYml, "loginlog."+System.currentTimeMillis()+event.getPlayer().getName(), event.getPlayer().getName());
|
||||||
BaseCommand.SendDebugPotato(event.getPlayer(), "loginlog."+System.currentTimeMillis()+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());
|
module.metricsList.add("loginlog."+System.currentTimeMillis()+event.getPlayer().getName());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue