From 090430c864067a8c499392e6e10e250b616655f6 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Thu, 25 Aug 2016 18:41:57 -0400 Subject: [PATCH] let's test --- .classpath | 4 ++-- src/iie/HelloWorld.java | 8 ++++---- src/iie/HelloWorldPlugin.java | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.classpath b/.classpath index cefbd63..072474b 100644 --- a/.classpath +++ b/.classpath @@ -2,7 +2,7 @@ - - + + diff --git a/src/iie/HelloWorld.java b/src/iie/HelloWorld.java index c092825..972943f 100644 --- a/src/iie/HelloWorld.java +++ b/src/iie/HelloWorld.java @@ -9,10 +9,10 @@ import org.bukkit.entity.Player; public class HelloWorld implements CommandExecutor { - //HelloWorldPlugin plugin; - //public HelloWorld(HelloWorldPlugin plugin){ - // this.plugin = plugin; - //} + HelloWorldPlugin plugin; + public HelloWorld(HelloWorldPlugin plugin){ + this.plugin = plugin; + } @Override public boolean onCommand(CommandSender sender, Command label, String command, String[] args) { diff --git a/src/iie/HelloWorldPlugin.java b/src/iie/HelloWorldPlugin.java index 17e779c..6544357 100644 --- a/src/iie/HelloWorldPlugin.java +++ b/src/iie/HelloWorldPlugin.java @@ -12,7 +12,7 @@ public class HelloWorldPlugin extends JavaPlugin { getServer().getPluginManager().registerEvents(new DeathListener(this), this); } public void registerCommands(){ - getCommand("HelloWorld").setExecutor(new HelloWorld(/*this*/)); + getCommand("HelloWorld").setExecutor(new HelloWorld(this)); } }