Guest User

Untitled

a guest
Oct 22nd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. rcjrrjcr - !(Permission.has(player, Permission.SHOP_CREATION) || ((Permission.has(player, Permission.SHOP_CREATION + "." + mat.getId()) || !Permission.has(player, Permission.EXCLUDE_ITEM + "." + mat.getId()))))
  2. 10:04 rcjrrjcr - Ah ha
  3. 10:04 rcjrrjcr - It's a bug
  4. 10:05 rcjrrjcr - The condition check is wrong
  5. 10:05 rcjrrjcr - It's ICCS3
  6. 10:05 rcjrrjcr - It should be
  7. 10:06 rcjrrjcr - !(Permission.has(player, Permission.SHOP_CREATION) || Permission.has(player, Permission.SHOP_CREATION + "." + mat.getId()) || Permission.has(player, Permission.EXCLUDE_ITEM + "." + mat.getId())
  8. 10:06 rcjrrjcr - Or reverse them
  9. 10:07 rcjrrjcr - I'll add a note
  10. 10:08 rcjrrjcr - Wait a moment
  11. 10:12 rcjrrjcr - Yeah, he's wrong
  12. 10:13 rcjrrjcr - !isAdmin && !(has shop.create || has shop.create.<id> || !(has shop.exclude.id)
  13. 10:14 rcjrrjcr - Kainzo: A temp fix would to give the default group ChestShop.shop.exclude.*
  14. 10:14 rcjrrjcr - But when he fixes this it will break, with no one able to build ChestShops
  15. 10:17 rcjrrjcr - Kainzo?
  16. 10:17 --- Doreagarde|work is away (Away)
  17. 10:18 Kainzo - tim here
  18. 10:19 rcjrrjcr - It's a logic error
  19. 10:19 Kainzo - ahh i see
  20. 10:19 rcjrrjcr - He's also allowing players without the exclude nodes to create chest shops
  21. 10:19 rcjrrjcr - s/also//
Add Comment
Please, Sign In to add comment