Skip to content

Instantly share code, notes, and snippets.

@williamhatcher
Created January 8, 2018 19:27
Show Gist options
  • Save williamhatcher/a6371e069d7b945a872039ef90082609 to your computer and use it in GitHub Desktop.
Save williamhatcher/a6371e069d7b945a872039ef90082609 to your computer and use it in GitHub Desktop.
ProtectionPerms Messages Feature Suggestion
# ProtectionPerms Message File
# Use this file to change what messages appear when a player does not have permission to perform the action the permission specifies.
# ProtectionPerms checks if a player can perform an action by checking permissions in the following order:
# Add order here
# More specific permissions override less specific nodes
# Wildcards can be used
# Placeholders
# ProtectionPerms supports several placeholders
# %player% for the player's display name
# %group% for the player's primary group
# %action% for 'place', 'break', 'primary interact', etc.
# %subject% for the block, item, etc. the player is performing the action with
# %target% for the block, item, etc. the player is trying to perform the action on
# ex. protectionperms.block.place.minecraft:bed, %subject% would be minecraft:bed, %target% would be null
# ex. protectionperms.item.use.minecraft:diamond_sword.on.minecraft:zombie, %subject% would be minecraft:diamond_sword, %target% would be minecraft:zombie
"messages": {
"protectionperms.block.place.*" : "You cannot place %subject% here!",
"protectionperms.block.place.minecraft:stone[variant=andesite]": "Andesite doesn't exist on this world!"
}
# ProtectionPerms
# Version: 1.2.1 (Change this each time the version changes)
# Prevent or Allow Actions
# By default, ProtectionPerms DENIES players from performing the action specified by the permission, acting as a whitelist
# Set to true to make ProtectionPerms act as a blacklist
# Default false
invert=false
# Messages
# ProtectionPerms will show the player a message above their hotbar when the player does not have permission to perform that action
# Set to false to disable this feature
# Default true
messages=true
# You can customize the messages in the messages.conf file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment