Because cows
This commit is contained in:
parent
0487d5af80
commit
4b731bf20d
3 changed files with 27 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
25
src/main/java/buttondevteam/presents/hello/HelloCow.java
Normal file
25
src/main/java/buttondevteam/presents/hello/HelloCow.java
Normal 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
1
target/classes/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/buttondevteam/
|
Loading…
Reference in a new issue