Edit Messages

If you want to customise your plugin even further, you may want to change the messages CreeperHeal sends to players. They are found in the messages.properties file in the CreeperHeal folder. You have a few variables to help you out :

{WORLD} : the world in which the action took place/the player is.

{PLAYER} : the player concerned (the one who did the action)

{BLOCK} : the block concerned (for example if the player placed a blacklisted block)

{TARGET} : the target player, or the owner of the trap

{MOB} : the mob concerned (for example if the player tried to spawn a mob)

{AMOUNT} : a number, can be a price, or a max number of traps.

{RED}{GREEN}{BLUE}{BOLD}, etc... : text formatting. Anything defined in bukkit's ChatColor will be recognised.

WARNING! If you use an inappropriate variable (for example {MOB} when a player buys a trap), the plugin will fail with a NullPointerError!

  • block-flint-and-steel-player : message to the player who tried to use flint-and-steel in a world where it was blocked
  • block-place-blacklist-player : message to the player who tried to place a blacklisted block
  • block-spawn-eggs-player : message to the player who tried to spawn a mob in a world where it was blocked
  • block-lava-player : message to the player who tried to place lava in a world where it was blocked
  • block-TNT-player : message to the player who tried to place TNT in a world where it was blocked
  • block-pvp-player : message to the player who tried to hit another player in a world where it was blocked
  • block-flint-and-steel-admin : message to the admin when a player tried to use flint-and-steel in a world where it was blocked
  • block-place-blacklist-admin : message to the admin when a player tried to place a blacklisted block
  • block-spawn-eggs-admin : message to the admin when a player tried to spawn a mob in a world where it was blocked
  • block-lava-admin : message to the admin when a player tried to place lava in a world where it was blocked
  • block-TNT-admin : message to the admin when a player tried to place TNT in a world where it was blocked
  • block-pvp-admin : message to the admin when a player tried to use hit another player in a world where it was blocked
  • warn-flint-and-steel : warning to the admin when a player used flint-and-steel
  • warn-place-blacklist : warning to the admin when a player placed a blacklisted block
  • warn-spawn-eggs : warning to the admin when a player spawned a mob
  • warn-lava : warning to the admin when a player placed lava
  • warn-TNT : warning to the admin when a player place TNT
  • warn-pvp : warning to the admin when a player hit another player
  • transaction-success : message to a player after buying a trap against money
  • refunded : message to a player when he is refunded after someone (himself?) removed one of his traps, telling him how much he was refunded (if he is refunded)
  • trap-success : message to a player after placing a free trap
  • not-enough-money : message to a player trying to place a trap without enough money
  • no-permission-command : message to a player trying to use a command they don't have the permission for.
  • no-permission-trap : message to a player trying to place a trap when they have no permission to
  • cant-remove-trap : message to a player trying to remove a trap they don't own.
  • too-many-traps : message to a player when they are trying to place a trap even though they already have the max.
  • trap-already-registered : message to a player trying to place a trap where there already is one.
  • trap-not-TNT : message to a player trying to make a trap while not looking at a TNT block
  • target-not-trap : message to a player trying to remove a trap on a block that is not a trap
  • trap-removed : message to a player after successfully removing a trap
  • trap-protected : message to a player trying to break a trap they don't own
  • plugin-help-no-commands : message to a player typing /ch help when they have no permission to any command
  • plugin-help-traps : help message for the /ch trap command

Note: Some of the messages are about traps, and will never be displayed unless you use CreeperTrap along with CreeperHeal.


Comments

Posts Quoted:
Reply
Clear All Quotes