[Blacklist] Will not notify/message if there are multiple blocks or items used
LadyCailinBot opened this issue ยท 6 comments
WORLDGUARD-3422 - Reported by TarzabTells
The blacklist notify and message will not appear if the same item is being used more than one time.
Drop value items
[diamond,emerald,goldore,goldbar,diamondore,emeraldore]
ignore-perms=test.perm
message=You can't drop these
on-drop=tell,notify,deny
Miner break
[56,14,129]
ignore-perms=miner.job
message=You need the Miner job to break this
on-break=deny,notify,tell,log
A simple solution would be to put both under one line, but I want them divided, because I want the Miner to be able to Mine the items, but not drop them. Vica versa, I don't want other than miner to mine diamonds.
Comment by TarzabTells
The notification or message may work in random order. Ex: I try to break diamondore,emeraldore,goldore. It might only show message for diamond and emerald, if I try to drop the gold ore, it will output message. If I try to break the gold, it will only deny, no message or notification.
Comment by wizjany
Er, to clarify, do you mean that if an entry has more than one item it applies to, only one of the resulting actions is carried out? If you make separate entries (eg, one for [56], one for [14], one for [129]) do they all work? This kind of sounds like an issue I ran into while testing another bug, but I'm pretty sure my entry only had one item.
Comment by TarzabTells
@wizjany Yes. That is correct. If there are more entries with the same item, it will only display message or tell for one of the entries, not all. In my case, it randomly chooses which entry to display the message. (though the function still works, as it denies the entry, but with no message)
Comment by wizjany
Oh, you mean exactly the opposite of what I was talking about. It's because you have multiple entries covering the same item, not multiple items in the same entry. I think there might actually be two different issues here, one regarding having multiple entries, and a separate one regarding the message not showing.
Comment by TarzabTells
Sorry, I'll try to explain better.
Miner break
[56,14,129]
ignore-perms=miner.job
message=You need the Miner job to break this
on-break=deny,tell
Drop value
[56,14,129]
ignore-perms=admin
message=You need to be admin to drop these
on-drop=deny,notify,tell,log
In this example three items are used in two different sections. Worldguard only displays message in one of the sections (which is random upon every /wg reload you do). If I start the server it might show "You need the Miner job to break this" for id 56 and 14, but not for 129. Though if I try to drop 129, it will display "You need to be admin to drop these" for 129, but not 56 and 14 (since this was already covered earlier)
I hope you understand what I mean.