Enum Class PermissionLevel
- All Implemented Interfaces:
Serializable,Comparable<PermissionLevel>,Constable,Predicate<net.minecraft.commands.CommandSourceStack>
public enum PermissionLevel
extends Enum<PermissionLevel>
implements Predicate<net.minecraft.commands.CommandSourceStack>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThese players can use commands related to player management.These players can execute commands that modify the world and player data.These players have slightly elevated permission levels.This is the highest permission level available in vanilla Minecraft.All players will generally meet the requirements for this permission level. -
Method Summary
Modifier and TypeMethodDescriptionintget()booleantest(net.minecraft.commands.CommandSourceStack source) static PermissionLevelReturns the enum constant of this class with the specified name.static PermissionLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAYER
All players will generally meet the requirements for this permission level. -
MODERATOR
These players have slightly elevated permission levels. In vanilla, they do not gain access to any additional commands, but they are able to bypass spawn chunk protection. -
GAMEMASTER
These players can execute commands that modify the world and player data. They are also allowed to use and modify command blocks. -
ADMIN
These players can use commands related to player management. For example, they can ban, kick, op, and de-op. -
OWNER
This is the highest permission level available in vanilla Minecraft. Players with this permission level generally have no restrictions.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
get
public int get() -
test
public boolean test(net.minecraft.commands.CommandSourceStack source)
-