I need help with DeluxeMenus!
Hey guys, I'm going to try to make this as brief as possible. Basically imagine a "skywars" game, where after a certain amount of players are in a lobby, they all get teleported to this "skywars" game. I want these players in the lobby to be forced to choose a kit, and they instantly get sent into a team (Example: team Archer), and when a kit is chosen, other players can't pick it
So basically, 1 player per kit, and when that kit is picked, it displays saying that it is picked.
Could anyone help me with that? Please
#Need help with DeluxeMenus!
1 messages · Page 1 of 1 (latest)
I can thing of a way but it's a big wacky 💀
you can make a rank in luckperms
when a player clicks an item to select a kit u can also run a console command that would give a temporary permission to that rank
like the time till the game starts
and it will be in that loop
Players Select the kit > they get permission > game starts > permission get removed > game ends > players select the kit...
oh btw don't forget to add the [refresh] too
Sounds like it could work, but how can we make it so that only 1 player can choose it?
And if the kit is picked, maybe it could display to everyone else, that the kit is picked? Idk XD
thats why the permission is it for
u could give something like skywars.kit.selected.<kitname> to the rank
which would basically [the permission] would be a view requirement for the item that says that the kit is selected
But how is giving 1 player that permission going to make all the other players stop bring able to get that permission for themselves
'kit_archer_selected':
material: bow
slot: 11
priority: 1
view_requirement:
requirements:
kit_selected:
type: "has permission"
permission: "skywars.kit.selected.archer"
display_name: '&8« &aArcher Kit &8»'
lore:
- ''
- '&7This kit is selected'
'kit_archer_not selected':
material: bow
slot: 11
priority: 2
display_name: '&8« &aArcher Kit &8»'
lore:
- ''
- '&7This kit is not selected'
click_commands:
- '[console] lp group default permission set settemp skywars.kit.selected.archer 10m'
- '[refresh]'
- '[broadcast] &a%player_name% &7selected the &aArcher &7Kit.'
u dont give the permission to the player
u give it to the group
so basically every player
and hopefully the refresh will refresh the gui for the other players too
give it a try and let me know
Sounds good, is there a way to make it so that when the game starts (somehow), these permissions get removed?
thats why i made the temppermission but i m thinking of situations that it could bug
is there a placeholder of the skywars plugin that the game is on or something?
i mean started
Yeah there definitely is some, plus i don't think it works with multiple worlds but i could be wrong
it would work if u filter the world in the permission
but like there r situations that would be very wacky
It's not a skywars game at all i just called it that to make it easier to understand, it's basically a lobby where a bunch of people wait, once there's enough players with a kit selected they should be teleported into a "super arena" Where players can fight using extremely powerful kits with abilities
I understand the wackiness, though
It should kinda copy Hypixel's "Build battle" Gui if i'm not wrong, where you can basically select a team and stuff, but i'm not exactly sure how to do this
Not sure if DeluxeMenus can help me with this one at all to be honest, but if you know any other way or plugin please lmk!
you could probably do it with deluxemenus but u r gonna need a script like plugin like ExecutableEvemts from Ssomar or Actions from Auxilor search em on spigot
they would basically clear the permissions when some conditions are met
I know, i just have 0 coding knowledge, which makes my task a little annoying