MCTowns

MCTowns

52.4k Downloads

Revamped quick select tool

hockeymikey opened this issue ยท 1 comments

commented

Currently the QS tool behaves like the worldedit wand, very limited and basic in the scope of the item.
It's currently almost usless for survival on any non-whitelisted server as it ties up a whole item to be used and you don't want to assign it to a non-attainable item and leak those items into the economy/world.

To revamp this included in the config would be three new fields:

QS_Display_Name: '&7A Name'

QS_Lore:
- '&4select zones'
- '&4and stuff'

QS_Survival: true

If set then MCTowns would only look for a QS tool that matches the following item id, lore and display name.

The third field would enable listeners that would remove the QS wand if it is dropped/tried to be placed in a chest, ect. ensuring that it is only used for selecting and no used as an item. I have a similar setup in one of my plugins which can be used as reference for a quick list of all the events to cancel. (are all contained near the top)

https://github.com/hockeymikey/NewerWand/blob/master/src/mn/hockeymikey/newerwand/NewerListener.java

Also the addition of a new command (/mct wand ?) that will give a player the QS tool but if QS_Survival is enabled would check if they already have the wand and wouldn't give them a second one if they do.

commented

#78 will change how the QS tool is used- but that shouldn't impact these changes too much. Will probably work on this in tandem with it.