forked from hacker_marc/AdvancedKill
Upload Plugin
This commit is contained in:
commit
dafa05a66b
10 files changed
+368
No files matched your search
@@ -0,0 +1,29 @@
|
||||
package de.marc.advancedKill.commands;
|
||||
|
||||
import de.marc.advancedKill.AdvancedKill;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.entity.Zombie;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class ZombieCmd {
|
||||
private final AdvancedKill plugin;
|
||||
|
||||
public ZombieCmd(AdvancedKill plugin) {
|
||||
this.plugin = plugin;
|
||||
}
|
||||
|
||||
|
||||
public void execute(CommandSender sender, Player target) {
|
||||
Zombie zombie = target.getWorld().spawn(
|
||||
target.getLocation(),
|
||||
Zombie.class
|
||||
);
|
||||
|
||||
zombie.getEquipment().setItemInMainHand(
|
||||
new ItemStack(Material.DIAMOND_SWORD)
|
||||
);
|
||||
sender.sendMessage("§aErfolg!");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user