#Different permission from rank (Daily Reward)

1 messages · Page 1 of 1 (latest)

digital fern
#

Hey guys, i need help with my gui ! I want to make a GUI that each rank see other things (Because the different permission). For example the nomad and settler rank, when player with the permission essentials.kits.nomad can see only the 'reward-nomad': and get the rewards from nomad reward and the essentials.kits.settler can see only the 'reward-settler': and get only the reward from settler rank.

#

``open_command: daily
register_command: true
size: 27
menu_title: 'Daily Rewards'

items:
'filler':
material: GRAY_STAINED_GLASS_PANE
display_name: "&f"
data: 1
slots: [0-26]

'reward-nomad':
material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOWZkNWY1YTZjYzU1MmQyMzdmNzQ0M2Y1MGI5N2IyZWMwMzMwOTRjYzA4YzU5NDIyYjk2OWY3YTdlNzA0OGUwNiJ9fX0=
data: 1
optional: true
slot: 15
priority: 1
update: true
display_name: "&b&lReward Nomad"
lore:
- "&b&l| &fCooldown: &71 day"
- "&b&l| &fAvailability: &aAvailable"
- "&b&l| &fLeft-click &7to claim"
view_requirement:
example_1:
permission:
type: has_permission
permission: essentials.kits.nomad
deny_commands:
- '[message] &cYou don''t have permission to do that! nomad'

click_commands:
  - '[console] daily %player_name%'
  - '[refresh]'

'reward-settler':
material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOWZkNWY1YTZjYzU1MmQyMzdmNzQ0M2Y1MGI5N2IyZWMwMzMwOTRjYzA4YzU5NDIyYjk2OWY3YTdlNzA0OGUwNiJ9fX0=
data: 1
slot: 15
priority: 0
update: true
display_name: "&b&lRewards Settler"
lore:
- "&b&l| &fCooldown: &71 day"
- "&b&l| &fAvailability: &aAvailable"
- "&b&l| &fLeft-click &7to claim"
view_requirement:
example_2:
permission:
type: has_permission
permission: essentials.kits.settler
deny_commands:
- '[message] &cYou don''t have permission to do that! settler'

click_commands:
  - '[console] minecraft:give %player_name% dirt 1'
  - '[refresh]'

``

craggy zincBOT
#
Valid Config!

tolmwn, I checked your config and, it's valid!

+ Correctly Formatted```
grim flume
#

type: has permission, no _

#

also remove data: 1 and optional: true

#

and you're not using any placeholders in the name/lore so you don't need update: true

digital fern
#

Okey thanks, so you mean like this?

view_requirement: example_1: permission: type: has permission, no _ permission: essentials.kits.nomad

grim flume
digital fern
#

hahahah sorry, but its still not working

view_requirement: example_2: permission: type: has permission permission: essentials.kits.settler

grim flume
#

did you change it on both items?

digital fern
#

Yea i think so

grim flume
#

yeah

#

btw deny_commands aren't aligned correctly

#

they need to be under the requirement

#

next to type & permission

#

anyways, which item shows right now?

#

and are you OP ?

digital fern
digital fern
grim flume
#

using LuckPerms?

#

/lp user <player> permission check essentials.kits.settler

digital fern
digital fern
# grim flume using LuckPerms?

ultrapermission plugin is that what i use but i check if the player has essentials.kits.settler and he not have it. Only the essentials.kits.nomad from the nomad rank

grim flume
#

example_2: -> requirements:

#

idk how I didn't notice earlier

#

under view_requirement

#

same with example_1

digital fern
#

oh thank you its working now but i get the

deny_commands: - '[message] &cYou don''t have permission to do that! settler'

from settler rank and im nomad, so i need to remove the deny_commands, right ?

grim flume
#

oh right

#

I didn't realize you were using deny commands in view requirements

#

I'm can't think clearly XD

digital fern
#

i used it to put like a msg to ppl see that he need wait, its possible to make like a cooldown and cooldown msg? Sorry for my questions but i tried to find it but i didnt find it, maybe its not possible that why

digital fern
grim flume
#

then you'd need a click_requirement

#

why is my internet connection this buggy

#

maybe it was just Discord

#

nope, at least I don't think so

digital fern
digital fern
grim flume
#
click_requirement:
  requirements:
    cooldownCheck:
      type: string equals
      input: "%essentials_kit_is_available_settler%"
      output: "yes"
#

make sure you have the Essentials expansion for PAPI
(/papi ecloud download Essentials & /papi reload)

digital fern
#

yea but the problem with it its like that player saw the kit from settler, the essentials.kits.settler was a example, because when i use a kit for daily reward is show at the chat a msg from essentials that

#

and it's weird because it's a reward and not a kit

#

its any other possible way maybe?

grim flume
#

No idea

#

use a proper dailyrewards plugin instead of Essentials' kits and DeluxeMenus XD

digital fern
#

okey i unterstand xD that why i didnt found something on google xD

Its okey ! Thank you very much that you helped me ! 😄

craggy zincBOT
#
Config Error!

tolmwn, I found an issue with your config:

- Duplicated mapping key at line 43, column 11:
              type: ">="
              ^```
digital fern
#

'1': material: NETHER_STAR slot: 0 display_name: "&b&nNether Star" lore: - " " - "&fBuy price: &#17FF73$5,000" - "&fSell Price: &#FF2020$2,000" - " " - "&8→ Left click to buy" - "&8→ Right click to sell" left_click_requirement: requirements: permission: type: has permission permission: blackmarket deny_commands: - "[message] &aShop » &fYou must have the &aOverlord &frank or above to access the Black Market. Use &a/shop &fto check them out!" left_click_requirement: requirements: hasMoney: type: ">=" input: "%vault_eco_balance%" output: "5000" deny_commands: - "[message] &aShop » &fYou cannot afford $5,000" left_click_commands: - "[takemoney] 5000" - '[console] minecraft:give %player_name% minecraft:nether_star 1' - "[message] &aShop » &fYou bought &a1x Nether Star &ffor the price of &a$5,000" right_click_requirement: requirements: permission: type: has permission permission: blackmarket deny_commands: - "[message] &aShop » &fYou must have the &aOverlord &frank or above to access the Black Market. Use &a/shop &fto check them out!" right_click_requirement: requirements: has_item: type: has item material: "NETHER_STAR" amount: 1 deny_commands: - "[message] &aShop » &fYou do not have 1x Nether Star in your inventory to sell" right_click_commands: - "[console] minecraft:clear %player_name% minecraft:nether_star 1" - "[givemoney] 2000" - "[message] &aShop » &fYou sold &a1x Nether Star &ffor the price of &a$2,000"

#

Is someone maybe that can help me with that? Its not working right because i want only the ppl with the permission blackmarket but its not working, now its allow to all ppl to buy and sell

craggy zincBOT
#
Config Error!

tolmwn, I found an issue with your config:

- Duplicated mapping key at line 19, column -231:
        left_click_requirement:
        ^```
#
Config Error!

tolmwn, I found an issue with your config:

- Duplicated mapping key at line 19, column -201:
          requirements:
          ^```
#
Valid Config!

tolmwn, I checked your config and, it's valid!

+ Correctly Formatted```