mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Update Command_cage.java
This commit is contained in:
parent
1fcaef8ab1
commit
b485a9792d
@ -13,7 +13,7 @@ import org.bukkit.command.CommandSender;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@CommandPermissions(level = Rank.SUPER_ADMIN, source = SourceType.BOTH)
|
@CommandPermissions(level = Rank.SUPER_ADMIN, source = SourceType.BOTH)
|
||||||
@CommandParameters(description = "Place a cage around someone.", usage = "/<command> <purge | off | <partialname> [custom | block] [Block name | Player name(for skull)]")
|
@CommandParameters(description = "Place a cage around someone.", usage = "/<command> <purge | off | <partialname> [skull | block] [blockname | skullname]")
|
||||||
public class Command_cage extends FreedomCommand
|
public class Command_cage extends FreedomCommand
|
||||||
{
|
{
|
||||||
public static String playerSkullName;
|
public static String playerSkullName;
|
||||||
@ -52,7 +52,7 @@ public class Command_cage extends FreedomCommand
|
|||||||
playerdata3.getCageData().setCaged(false);
|
playerdata3.getCageData().setCaged(false);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
case "custom": {
|
case "skull": {
|
||||||
outerMaterial = Material.SKULL;
|
outerMaterial = Material.SKULL;
|
||||||
Command_cage.playerSkullName = args[2];
|
Command_cage.playerSkullName = args[2];
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user