#Deluxemenu Issue

1 messages · Page 1 of 1 (latest)

short sonnet
#

So no matter what, when a player clicks the item to buy, it runs the following commands in the console and still gives the player the item even if they don't have the right amount of money. Here is the console and below will be the config

[17:14:34 INFO]: [Essentials] CONSOLE issued server command: /eco take WeirdPanda20 120
[17:14:34 INFO]: Error: The minimum balance a user can have is $0.
[17:14:34 INFO]: [Essentials] CONSOLE issued server command: /give WeirdPanda20 tnt 8
[17:14:34 INFO]: Giving 8 of tnt to WeirdPanda20.

CONFIG

material: TNT
    amount: 8
    slot: 0
    display_name: '&fTNT'
    lore:
    - '&aBuy: &7$120'
    - '&cSell: &7$27.5'
    left_click_commands:
      - '[console] eco take %player_name% 120'
      - '[console] give %player_name% tnt 8'
      - '[message] &7[&6&lSHOP&7] &fYou bought &a8x TNT &ffor &a$120&f.'
    left_click_requirement:
      expression: '%vault_eco_balance% >=120'
      deny_commands:
        - '[message] &7[&6&lSHOP&7] &cSorry, but you do not have enough money.'
    right_click_commands:
      - '[console] eco give %player_name% 27.5'
      - '[console] clear %player_name% tnt 8'
      - '[message] &7[&6&lSHOP&7] &fYou sold &a8x TNT &ffor &a$27.5&f.'
    right_click_requirement:
      requirements:
        item:
          type: has item
          material: TNT
          amount: 8
          deny_commands:
          - '[message] &7[&6&lSHOP&7] &cSorry, but you do not have enough TNT.'