Sueta
MM

MmItemUpdater

v4.9.0-R0.2.0

Never afraid to release item anymore

·Plugin


Do you ever regret that u released a too powerful tools or weapon to players but you cant get it back since most of the players already having it? Or even admin abuse that u got no way to fix this? No worries, this plugin solve your problem!


MmItemUpdater is a plugin which uses MythicMobs( https://dev.bukkit.org/projects/mythicmobs )'s built in Item manager to update player's old item to new item in any event u want, such as when they click the item, or when they join the server, or when they swap items, whenever u want that is supported by spigot

All you have to do is first import your old item into MythicMobs's item manager
Hold ur item in hand and do

/mm i import ExampleItem_Old /MmItemUpdater/OldItems

Now, edit ur item to what you like, and import again

/mm i import ExampleItem /MmItemUpdater/NewItems

By default config, the items will be updated when player join, click and swap the item in hand, you can also custom the timing at section "UpdateEvent"
!!!Remeber, sinces "ExampleItem_Old" and "ExampleItem" is added default in config, later each time you want to add a new item into the update list, you will have to manually add the internal ID into section "ItemsToUpdate" in config!!!

Having troubles?
Try this first

/mm i get SkeletonKingSword

Right click it, if it changed to a golden helmet, it is probably your config messed up, double check it!

Commands
/mmiu reload
Command: /mmiu reload 
Usage: reload the plugin config 
Permission: mmiu.admin

general.yml
#======================================================================#  
 #          Thank you for using 《MCCW Technology》@CopyRight  
 #                     Developed by mkcoldwolf  
 #  
 #   Spigot Page: https://www.spigotmc.org/members/mkcoldwolf.241535/  
 #               Discord: https://mc.mccwtech.net/discord  
 #======================================================================#  
 
General  :  
  prefix   :   "&b\u3010MCCW\u3011\u300b "   
  consolePrefix   :   "&b\u3010MCCW Console\u3011\u300b "  
   #----------------------------------------------------------------------------  
   #|  Debug Mode (Dot not use this if you dont know what is this)             |  
  #---------------------------------------------------------------------------- 
  debug: false 
  
Message  :  
  reloadConfig   :   "&aconfig reloaded successfully"   
  loadSuccess   :   "&aSuccessfully loaded {item_numbers} items, {rule_numbers} rules"   
  loadError   :   "&cLoaded {item_numbers} items, {rule_numbers} rules with {error_item_numbers} warning, see console for more information"   
  noPermission   :   "&cInsufficient Permission"   
  itemMissingFromMythicMobs   :   "&eItem {item_key} is missing from MythicMobs Items Manager"  
 
UpdateEvent   : 
    #----------------------------------------------------------------------------  
   #|  Here is some special event which only update the event related          |  
  #|  item, so it won't cost server too many resources even you enable        | 
  #|  them all.                                                               | 
  #---------------------------------------------------------------------------- 
  specialEvent: 
    EntityPickupItemEvent: false 
    InventoryClickEvent: true 
    PlayerDropItemEvent: true 
    PlayerInteractEvent: true 
    PlayerSwapHandItemsEvent: true 
  #-------------------------------------------------------------------------------------- 
  #|  Here is some general event which will do a general item update on                 | 
  #|  player (update every items in inventory), so it may cost a little bit             | 
  #|  more resources on server side, please consider before enable them.                | 
  #|                                                                                    | 
  #|  For more events, you can visit here                                               | 
  #|  https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/player/PlayerEvent.html | 
  #-------------------------------------------------------------------------------------- 
  generalUpdateEvent: 
    - "PlayerJoinEvent"  
 #    - "PlayerQuitEvent"  
 #    - "PlayerMoveEvent"  
 #    - "PlayerEvent"  

 #----------------------------------------------------------------------------  
 #|  Here is the item list you would like to update                          |  
 #|  Remember, each item you want to update would need to be added here      |  
 #----------------------------------------------------------------------------   
ItemsToUpdate  :  
  SkeletonKingSword   :  KingsCrown  
  ExampleItem_Old   :  ExampleItem 

 #----------------------------------------------------------------------------  
 #|  Here is the rules list you would like to update                         |  
 #|  You can specific a item with certain display name or lore to update     |  
 #----------------------------------------------------------------------------   
RulesToUpdate  :  
  RuleID  :  
    match  :  
      displayName   :   "&bImACustomItem"   
      displayNameContain   : 
        -  "&bImA"  
        -  "CustomItem"   
      lore   : 
        -  "&6the item will be updated to air if contain this lore"  
        -  "&6and both this lore"   
      loreContain   : 
        -  "both this"   
    item   :  AIR

Still having trouble? contect me at discord!
Discord: mkcoldwolf#3708
this page will update soon bcs im lazy to make it cleaner :joy:


If you like it, plz donate me so i have more power to create plugins!
Donation Link: https://paypal.me/mkcoldwolf

Similar projects

Plugin →