mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2025-07-09 23:38:08 +00:00
noclear option in smite
This commit is contained in:
parent
2725857364
commit
dc10c40578
1 changed files with 6 additions and 3 deletions
|
@ -15,7 +15,7 @@ import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@CommandPermissions(level = Rank.ADMIN, source = SourceType.BOTH)
|
@CommandPermissions(level = Rank.ADMIN, source = SourceType.BOTH)
|
||||||
@CommandParameters(description = "Someone being a little bitch? Smite them down...", usage = "/<command> <player> [reason] [-q]")
|
@CommandParameters(description = "Someone being a little bitch? Smite them down...", usage = "/<command> <player> [reason] [-nc | -q]")
|
||||||
public class Command_smite extends FreedomCommand
|
public class Command_smite extends FreedomCommand
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -54,7 +54,10 @@ public class Command_smite extends FreedomCommand
|
||||||
player.setGameMode(GameMode.SURVIVAL);
|
player.setGameMode(GameMode.SURVIVAL);
|
||||||
|
|
||||||
// Clear inventory
|
// Clear inventory
|
||||||
|
if (!args[args.length - 1].equalsIgnoreCase("-nc"))
|
||||||
|
{
|
||||||
player.getInventory().clear();
|
player.getInventory().clear();
|
||||||
|
}
|
||||||
|
|
||||||
// Strike with lightning effect
|
// Strike with lightning effect
|
||||||
final Location targetPos = player.getLocation();
|
final Location targetPos = player.getLocation();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue