1
0
mirror of https://github.com/lucko/LuckPerms.git synced 2025-08-22 06:02:49 +02:00

Provide 'gamemode' and 'dimension-type' contexts by default

Also, optimize world rewrites
This commit is contained in:
Luck
2020-11-07 00:57:57 +00:00
parent 3f04d439b4
commit 0ea0ce9d26
14 changed files with 340 additions and 113 deletions

View File

@@ -34,13 +34,31 @@ public final class DefaultContextKeys {
}
/**
* The context key used to denote the subjects server.
* The context key used to denote the name of the subjects server.
*/
public static final String SERVER_KEY = "server";
/**
* The context key used to denote the subjects world.
* The context key used to denote the name of the subjects world.
*/
public static final String WORLD_KEY = "world";
/**
* The context key used to denote the dimension type of the subjects world.
*
* <p>Possible values: overworld, the_nether, the_end</p>
*
* @since 5.3
*/
public static final String DIMENSION_TYPE_KEY = "dimension-type";
/**
* The context key used to denote the subjects gamemode.
*
* <p>Possible values: survival, creative, adventure, spectator</p>
*
* @since 5.3
*/
public static final String GAMEMODE_KEY = "gamemode";
}