Because cows

This commit is contained in:
alisolarflare 2017-04-14 19:52:01 -04:00
parent 0487d5af80
commit 4b731bf20d
3 changed files with 27 additions and 0 deletions

View file

@ -10,5 +10,6 @@ public class Hello extends Component{
public void register(JavaPlugin plugin) {
this.registerCommand(plugin, new HelloCommand(plugin));
this.registerListener(plugin, new HelloBedsplode());
this.registerCommand(plugin, new HelloCow());
}
}

View file

@ -0,0 +1,25 @@
package buttondevteam.presents.hello;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import buttondevteam.presents.architecture.commands.PlayerCommand;
public class HelloCow extends PlayerCommand {
@Override
public boolean OnCommand(Player player, String alias, String[] args) {
player.getWorld().spawnEntity(player.getLocation(), EntityType.COW) ;
return true;
}
@Override
public boolean GetModOnly() {
// TODO Auto-generated method stub
return true;
}
@Override
public String GetCommandPath(){
return "hello cow";
}
}

1
target/classes/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/buttondevteam/