Permissions
As of 1.3.0, the preview function can be used in-world. Naturally some way want to disable this or limit what information may be displayed, and that can be done via the server config and commands (level 3 required).
Configs
View Permission
The first option in the server config is the viewPermission
option which has 6 options
SEED_COMMAND
: Allows a player to open the preview, and view all information, if they have access to /seed (level 2), defaultBY_CATEGORY
: Allows a player to open the preview, with the information available being filtered via the other config optionsNEVER
: No player may ever open the previewALWAYS
: A player may always open the preview and view all informationALLOW_LIST
: If a player is part of theuniversal
filter, they may open the preview and view all informationDENY_LIST
: If a player is part of theuniversal
filter, they may not open the preview
This setting can also be set via the /tfcgenviewer set view_permission <permission_type>
command and gotten via /tfcgenviewer get view_permission
Categories
These options are only relevant if viewPermission
is set to BY_CATEGORY
All of these options have the same possible values and behavior
SEED_COMMAND
: If the player has /seed permission (level 2) they can access that feature, defaultALLOW_LIST
: If the player is part of that filter, they may access that featureDENY_LIST
: If the player is part of that filter, they may not access that featureNEVER
: No player may ever access that featureALWAYS
: A player may always access that information
exportPermission
If the player has access to this, they may export the preview
This setting can be set via the /tfcgenviewer set export <permission_type>
command and gotten via /tfcgenviewer get export
seedPermission
If the player has access to this, the world seed will be displayed in the preview screen
This setting can be set via the /tfcgenviewer set seed <permission_type>
command and gotten via /tfcgenviewer get seed
coordsPermission
If the player has access to this, they can click on the preview to display the coordinates their mouse is hovering over
This setting can be set via the /tfcgenviewer set coords <permission_type>
command and gotten via /tfcgenviewer get coords
climatePermission
If the player has access to this, they may view the Rainfall and Temperature visualizers
This setting can be set via the /tfcgenviewer set climate <permission_type>
command and gotten via /tfcgenviewer get climate
rocksPermission
If the player has access to this, they may view the Rocks and Rock Types visualizers
This setting can be set via the /tfcgenviewer set rocks <permission_type>
command and gotten via /tfcgenviewer get rocks
biomesPermission
If the player has access to this, they may view the Biomes and Inland Height visualizers
This setting can be set via the /tfcgenviewer set biomes <permission_type>
command and gotten via /tfcgenviewer get biomes
riversPermission
If the player has access to this, they may view the Rivers and Mountains and Biome Altitude visualizers
This setting can be set via the /tfcgenviewer set rivers <permission_type>
command and gotten via /tfcgenviewer get rivers
Filters
If a permission is set to ALLOW_LIST
or DENY_LIST
, access to that feature will depend on that player’s presence in the corresponding filter
Players can be added to filters via the /tfcgenviewer add <category> <player>
command and removed via the /tfcgenviewer remove <category> <player>
command
There are 8 categories
universal
: Used when the viewPermission config is set toALLOW_LIST
orDENY_LIST
export
: Used when the exportPermission config is set toALLOW_LIST
orDENY_LIST
seed
: Used when the seedPermission config is set toALLOW_LIST
orDENY_LIST
coords
: Used when the coordsPermission config is set toALLOW_LIST
orDENY_LIST
climate
: Used when the climatePermission config is set toALLOW_LIST
orDENY_LIST
rocks
: Used when the rocksPermission config is set toALLOW_LIST
orDENY_LIST
biomes
: Used when the biomesPermission config is set toALLOW_LIST
orDENY_LIST
rivers
: Used when the riversPermission config is set toALLOW_LIST
orDENY_LIST