-
-
Notifications
You must be signed in to change notification settings - Fork 14
Command cleaningitem
With this command you can configure the cleaning item and give it to players.
-
/cleaningitem get : Gives you a cleaning item. Permission for this command:
chestcleaner.cmd.cleaningitem.get
-
/cleaningitem give [playerName/@a] : Gives a cleaning item to a player with the name [playerName] or to all player with '@a'. Permission for this command:
chestcleaner.cmd.cleaningitem.give
-
/cleaningitem rename [name] : Changes the name of the cleaning item to [name] (You can use color-codes like: &1, &5, .. https://minecraft.tools/en/color-code.php just replace "§" to "&"). That doesn't mean that old cleaning items will get a new name, instead they will not work anymore. To get the working cleaning item use /cleaningitem get. Permission for this command:
chestcleaner.cmd.cleaningitem.rename
-
/cleaningitem setitem : Sets the cleaning item to the item you're holding in your main hand. Permission for this command:
chestcleaner.cmd.cleaningitem.setitem
-
/cleaningitem setlore [lore] : Sets the lore of the cleaning item (thats a text you can see if you hover over the item) . You can use color-codes like: &1, &5, .. https://minecraft.tools/en/color-code.php just replace "§" to "&". That doesn't mean that old cleaning items will get a new lore, instead they will not work anymore. To get the working cleaning item use /cleaningitem get. Permission for this command:
chestcleaner.cmd.cleaningitem.setlore
-
/cleaningitem setActive [true/false] : Activates or deactivates the functionality of the cleaningitem for all player. Permission for the command:
chestcleaner.cmd.cleaningitem.setactive
-
/cleaningitem setDurabilityLoss [true/false] : "true" activates that your item will get damage or its amount gets reduced by one if its is stackable like iron, if you're using it to sort. "false" deactivates it. Permission for this command:
chestcleaner.cmd.cleaningitem.setdurabilityloss
-
/cleaningitem setEventDetectionMode [true/false] : Activates or deactivates the event-detection-mode. If this mode is active the plugin will get the inventories if your opening an inventory, as a player, while holding your cleaning item. Thats usefull if you dont want other players to sort the chests of others, because you will only be able to sort inventories you are able to open. The disadvantage is: that method has some confilcts with other plugins, inventories that are opened by other plugins will get sorted. For that case i have implemented a iterator method (that will be active if the eventDetectionMode is set to false), that means the plugins uses the block the player is looking on, like the command cleaninventory. The problem is, players are able to sort every chest. Permission for this command:
chestcleaner.cmd.cleaningitem.seteventdetectionmode
- Hold a iron axe in your hand and use
/cleaningitem setitem
. Your cleaning item is now a iron axe. - Now we rename the item:
/cleaningitem rename &6Cleaning &cAxe
&6 makes the color goldes, &c light red (Use & instead of § https://minecraft.tools/en/color-code.php) - So that the player knows what this item does we add a lore to our item:
/cleaningitem setLore &eYou can sort inventories with this item.
(You can see the lore by hovering over the item) - We want that the tool gets damaged by using it, so we activate this with this command
/cleaningitem setDurabilityLoss true
ChestCleaner 2.4.2
- Home
- FAQ
- Migration Guide 2.0
- Features
- Commands
- Permissions
ChestCleaner 1.7
- Home
- Cleaning Item
- Commands
For Developers
- Home
- Datastructures