Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.nique.plugins.cvsboom;
- import org.bukkit.command.Command;
- import org.bukkit.command.CommandSender;
- import org.bukkit.entity.Player;
- import org.bukkit.plugin.java.JavaPlugin;
- public class Cvsboom extends JavaPlugin{
- public void onEnable(){
- getLogger().info("Boom Enabled");
- }
- public void onDisable(){
- getLogger().info("Boom Disabled");
- }
- public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
- if(cmd.getName().equalsIgnoreCase("boom")){
- float explosionPower = 9F;
- Player target = sender.getServer().getPlayer(args[0]);
- target.getWorld().createExplosion(target.getLocation(), explosionPower);
- target.setHealth(0);
- }
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement