M0 - AntiAnvilRename icon

M0 - AntiAnvilRename -----

Disable anvil renaming with ease.




Mostly code cleanup and general refactoring.
----------, Oct 16, 2023

Added word blacklist.

If a blocked command is used, ex. /rename badword or player tries to rename the item in the anvil with 'badword' and it is specified as blacklisted - the action will be denied.
It checks if the rename text matches or contains blacklisted word, so if ex. player tries to rename to 'beforebadwordafter' it will still be denied.


Code (YAML):

M0-AntiAnvilRename
:
  ConfigReloaded
: '&aConfig has been reloaded.'
  NoPermission
: '&cYou do not have permission to use this command.'
  RenameBlocked
: '&4You cannot rename items.'
  CloseOnAttempt
: true
  EnableWhitelist
: false
  OnlyWithLore
:
    Enabled
: false
    Message
: '&4You cannot rename this item.'
  AllowedItems
:
   - 'DIAMOND_SWORD'
  EnableBlacklist
: false
  DeniedItems
:
   - 'TRIPWIRE_HOOK'
  DenyWhileHolding
:
    Items
:
     - 'DIAMOND_SWORD'
    Commands
:
     - '/rename'
    Message
: '&4You cannot use this command while holding this item.'
  WordBlacklist
:
   - "badword"
    - "otherbadword"
 
----------, Jul 20, 2021

Added a command to reload the config in-game.

Command syntax:
/antianvilrename reload
/aar reload

Permission:
m0antianvilrename.command.reload
----------, Mar 4, 2021

Added config option to only deny items with lore (request).

Be sure to update your config.

Code (Text):

OnlyWithLore:
  Enabled: false
  Message: '&4You cannot rename this item.'
 
Full config can be found in the main page.
----------, Feb 7, 2021

Introduced config option to deny specific commands, like /rename while holding specific items. (Request)

Be sure to renew your old config.

Code (YAML):
M0-AntiAnvilRename:
  RenameBlocked
: '&4You cannot rename items.'
  CloseOnAttempt
: true
  EnableWhitelist
: false
  AllowedItems
:
   - 'DIAMOND_SWORD'
  EnableBlacklist
: false
  DeniedItems
:
   - 'TRIPWIRE_HOOK'
  DenyWhileHolding
:
    Items
:
     - 'DIAMOND_SWORD'
    Commands
:
     - '/rename'
    Message
: '&4You cannot use this command while holding this item'
----------, Jan 29, 2021

Fixed bug with blacklist.
----------, Jan 4, 2021

Added option to enable blacklist.
----------, Jan 4, 2021

You can now allow to players rename specific items with a permission.
----------, Dec 20, 2020

Fixed a bug where the item disappears if it has a color (renamed with a plugin) and shift-clicked in the anvil.
----------, Dec 20, 2020

Fixed concurrent modification.
----------, Dec 17, 2020

Some minor fixes and option to close on attempting to rename.

Probably last update.
----------, Dec 17, 2020

Fixed the allowed items..
----------, Dec 17, 2020

Renamed from RenameBlocker to AntiAnvilRename..
----------, Dec 17, 2020

Resource Information
Author:
----------
Total Downloads: 2,138
First Release: Dec 17, 2020
Last Update: Oct 16, 2023
Category: ---------------
All-Time Rating:
6 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings