iGabyTM / arcane-vouchers

The ultimate vouchers plugin
https://spigotmc.org/resources/76946/
GNU General Public License v3.0
0 stars 2 forks source link

Rename 'negated' to 'expected' or something that makes more sense #19

Open iGabyTM opened 1 year ago

iGabyTM commented 1 year ago

https://github.com/iGabyTM/arcane-vouchers/blob/72f194e8866ce363ed93a827ccd058c60909a874/plugin/src/main/kotlin/me/gabytm/minecraft/arcanevouchers/voucher/requirements/implementations/number/NumberRequirement.kt#L41

Or keep the name and change this to != negated https://github.com/iGabyTM/arcane-vouchers/blob/72f194e8866ce363ed93a827ccd058c60909a874/plugin/src/main/kotlin/me/gabytm/minecraft/arcanevouchers/voucher/requirements/implementations/number/NumberRequirement.kt#L42 and remove the negation (!negated) from here https://github.com/iGabyTM/arcane-vouchers/blob/72f194e8866ce363ed93a827ccd058c60909a874/plugin/src/main/kotlin/me/gabytm/minecraft/arcanevouchers/voucher/requirements/implementations/number/NumberRequirement.kt#L34

If negated = true the condition will be (left == right) != true