MobHunting

MobHunting

114k Downloads

lore edit issue

mechcalvin opened this issue ยท 10 comments

commented

Hello, been using this for a long time, however is it possible to setup log when player exchange their bag of money using sign? I have players use change lore method to edit the bag of gold and exchanged over 1 trillion amount of money, i need to close my server to shut down this bug

commented

The problem is that they can copy all the hidden lines from a more expensive BagOfGold to a less expensive BagOfGold (inclusive the very long hash value)
image

I thing the is a problem with MobHeads with a value. I need to do more testing on this.

commented

Hmmmm, but if they can't see the hash then they can't copy it unless they find a way to do it, i will also do some testing with admin perms and normal player perms, thanks anyway for the solution, even it is not perfect it rises the bar since it was super easy with setlore commands

commented

Exactly.

commented

I have added a Hash value to the BagOfGold which makes it harder to chnage the value. BUT it is not 100% safe.
OBS. You should Install ProtocoLib (https://www.spigotmc.org/resources/protocollib.1997/) before you install the new version. This your players CANT see the hidden Lores and it makes it very very hard to chnage the vakue.

commented

Thanks, but is that lore still in second line? if yes they don't need to know but run the same command to change second line to hidden: amount

commented

Yes, the lore is still in the second line, but if they only change the second line, the plugin will discover this and set the value to 0.

I have added an extra hidden line and calculated a hash value. If the hash value does not match the item value will be set to 0.

commented

ProtocolLib will hide the Hash value for the player, so they cant change the value in line 2.

commented

sounds great, i will do some testing, yet when you say it is not 100%, in what limit player might able to hack it?

commented

Please test newest release