QuickSwap
This plugin allows server owners to define items that swap places on a trigger ex. when a player sneaks if the item in their hand is a sword, swap it with a bow in their inventory, then when they unsneak the sword is returned to its original place.
Features
- Allows server owners to configure items that switch on trigger.
- Multiple switchable items can be defined
- Permissions support
Description
Allows item places to switch when a player triggers a listener.
Configuration
PlayerSneakDetectorOn : Whether or not sneak detector is enabled.
Any Integer with a list of item it can swap with. ex.
276: - 261
That will swap item id 276 with item id 261 when triggered. You can have multiple swap items.
ex.
276: - 261 - 213 - 112
Full configuration Example:
PlayerSneakDetectorOn: true 276: - 261
Permissions
QuickSwap.use: Allows player to use the quickswap function.
TODO
- add more listeners
Changelog
V 1 : Initial Release
-
View User Profile
-
Send Message
Posted Oct 19, 2013This is awesome, do you think you can make a listener for right click as well? Do you also think you can add a blacklist for lore/names for swapping items. If a certain item has a certain name/lore it wont allow you to quick swap :D for example if I have a stick with a lore that says Heavy it wont allow you to swap to the specified item, instead it will give you the fail message!
-
View User Profile
-
Send Message
Posted Apr 20, 2013@iTeush
Here, this is my config file to swap all the swords with a shield in your inventory, you're welcome :)
PlayerSneakDetectorOn: true 276: - 34 268: - 34 272: - 34 267: - 34 283: - 34
-
View User Profile
-
Send Message
Posted Apr 12, 2013Thanks for your plugin :) I just don't undersant How do I make it compatible with Shield ? What is the id please ?
-
View User Profile
-
Send Message
Posted Apr 5, 2013With the 1.1 version works like a charm :D
Im using it with realistic shield :)
-
View User Profile
-
Send Message
Posted Apr 4, 2013I cannot make it work :(
I sneak but it does nothing. Im using the detault config to test it:
PlayerSneakDetectorOn: true SwapSets: 276: - 261
I have a diamond sword and a bow in my quickslots and doesn't swap them with the shift key.
No errors showed in the console.
-
View User Profile
-
Send Message
Posted Mar 26, 2013Ofcourse
-
View User Profile
-
Send Message
Posted Mar 24, 2013I assume it only switches if they have the item? If so then I'll get this and your realistic shield plugin :D