Adjusted Potato usage to reflect API change

This commit is contained in:
alisolarflare 2016-11-21 13:32:46 -05:00
parent 5e1826bacd
commit b66f1a0735
5 changed files with 40 additions and 3 deletions

View file

@ -7,6 +7,7 @@ import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.components.alilinks.AliLinkComponent;
import alisolarflare.components.bankchest.BankChestComponent;
import alisolarflare.components.creativeboundaries.CreativeBoundariesComponent;
import alisolarflare.components.easyuhc.EasyUHCComponent;
import alisolarflare.components.flairdoor.FlairDoorComponent;
@ -25,6 +26,7 @@ public class AliPresents extends JavaPlugin{
new AliLinkComponent().register(this);
new BankChestComponent().register(this);
new CreativeBoundariesComponent().register(this);
new EasyUHCComponent().register(this);
new FlairDoorComponent().register(this);

View file

@ -0,0 +1,15 @@
package alisolarflare.components.bankchest;
import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.components.Component;
public class BankChestComponent extends Component {
@Override
public void register(JavaPlugin plugin) {
registerCommand(plugin, new CreateBankChest());
registerListener(plugin, new BankChestListener());
}
}

View file

@ -0,0 +1,6 @@
package alisolarflare.components.bankchest;
import org.bukkit.event.Listener;
public class BankChestListener implements Listener {
}

View file

@ -0,0 +1,15 @@
package alisolarflare.components.bankchest;
import org.bukkit.command.CommandSender;
import alisolarflare.components.ModCommand;
public class CreateBankChest extends ModCommand {
@Override
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
// TODO Auto-generated method stub
return false;
}
}

View file

@ -6,7 +6,6 @@ import org.bukkit.event.player.PlayerJoinEvent;
import alisolarflare.components.metrics.MetricsComponent;
import buttondevteam.lib.DebugPotato;
import buttondevteam.lib.DebugPotatoAPI;
public class PlayerJoinListener implements Listener{
@ -26,11 +25,11 @@ public class PlayerJoinListener implements Listener{
"Time: " + System.currentTimeMillis(),
"MetricsYML: " + module.metricsYml.toString()
});
DebugPotatoAPI.SendDebugPotato(potato, event.getPlayer());
potato.Send(event.getPlayer());
}catch (Exception ex){
DebugPotato potato = new DebugPotato();
potato.setMessage("Something went REALLLY wrong");
DebugPotatoAPI.SendDebugPotato(potato, event.getPlayer());
potato.Send(event.getPlayer());
}
}
module.metricsList.add("loginlog."+System.currentTimeMillis()+event.getPlayer().getName());