let's test

This commit is contained in:
BuildTools 2016-08-25 18:41:57 -04:00
parent 7d0847924b
commit 090430c864
3 changed files with 7 additions and 7 deletions

View file

@ -2,7 +2,7 @@
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="C:/Users/Alisolarflare/Personal/Hobbies/The Button Rebirth/Button Plugin/Minecraft Test Server/craftbukkit-1.9.2.jar"/>
<classpathentry kind="lib" path="C:/Users/Alisolarflare/Personal/Hobbies/The Button Rebirth/Button Plugin/Minecraft Test Server/spigot-1.9.2.jar"/>
<classpathentry kind="lib" path="/Users/kevinmathewson/Documents/aspigotthing/craftbukkit-1.10.2.jar"/>
<classpathentry kind="lib" path="/Users/kevinmathewson/Documents/aspigotthing/spigot-1.10.2.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View file

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

View file

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