#! DeluxeMenu need help
1 messages Ā· Page 1 of 1 (latest)
Nothing works š¦
u can simply use the string equals
and check for permission with parseother too
but u r gonna need a placeholder
like the one from luckperms
But I know but nothing works with this anymore I can send it to you but letās admit I want to display perms etc. it all puts in no while the player has it etc..
Wait how do we send via a link?
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
⢠HelpChat Paste - How To Use
Nothing goes I donāt know why even when the player has permission it tells me no (the player is offline in the case there..)
Hereās the links after there are things it works only when I indicate my nickname so itās weird but If you can watch, I would be grateful because I donāt understand
you can't get permissions of offline users
not all placeholders work when the user is offline
Ah.. itās really annoying..
standard procedure
otherwise you would have to keep all permissions for all users that ever existed in constant memory
Even using Luckperms ?
Well, apparently it was supposed to work..
you misunderstood the update notes
placeholderapi started supporting offline players in 2.9.0, correct
but once again, not ALL placeholders work for offline users
ESPECIALLY ones that deal with permissions or data in general
this includes luckperms placeholders
Adding on to this,
If you did NOT cache all values, and instead decided to retrieve the data directly from the source every time the placeholder is called, that would lead to insanely bad performance.
Placeholders could be called multiple times per second, which means multiple database pulls per second... or per tick.
There is something to prevent looking for a user if he is offline roughly require that the arg is necessarily connected
Yes you can check if a player is online using the %player_online% placeholder. You can combine that with the ParseOther expansion and then use DeluxeMenus open requirement to check if the player is online before opening the menu and not allow the menu to be opened if the player is not online
You could give me the example or not if you donāt mind of course
open_requirement:
requirements:
player:
type: string equals
input: "%parseother_{{username}}_{player_online}%"
output: "yes"
deny_commands:
- '[message] &7[&6&l!&7] &7This user isn''t online'
haspermission:
type: string equals
input: "%parseother_{{username}}_{luckperms_check_permission_test}%"
output: "yes"
deny_commands:
- '[message] &7[&6&l!&7] &7This user doesn''t have permission.'
@spice zealot ^
Thx šš½
np :d
Question why use the has permission?
Why did you put that?
^
So if I understand correctly, if the player is connected and we have permission to make the command it opens the menu but if we do not have permission it does not open the menu and if the player is not connected it tells us that he is not connected?
But suddenly, I would like to use it only for people to connect so there are no more permission concerns but if the player is not connected, it must not open the menu to him
So I explain myself when I type the command /staffstats <user> if the player is online, it opens the interface and if he is not it sends us a message to tell us that he is not connected and of course if we do not have permission to use the /staffstats <user> commands it sends us the message to say that we do not have permission
So if I only use the first part of what you sent me, it will work ?
correct
Bhahah it became a valve the baguette you 
So I tried the first part but it basically doesnāt work if I mark the nickname of someone who is not connected when it shouldnāt
u changed the username arg to that french one?
%parseother_{{joueur}}_{player_online}%
Yes
and it doesnt open for online players?>
If it opens to the online player but it should not open for offline players except that it opens
are u trying it while being op?
i think op has a bypass for the view requirement eitherway
deop yourself n try again
And it doesnāt work even if Iām connected š
But for players disconnecting it doesnāt work well if Iām no longer an operator
Yes
do u get any error msg from the deny commands?
Itās weird because when I reload it it works with offline players but if I type a nickname offline it no longer puts a message to say that the player is not connected and it opens the interface if we spam
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
⢠HelpChat Paste - How To Use
"%parseother_{{joueur}}_{player_online}" u missing a % in the end
It doesnāt change anything it opens the menu :/
Even if Iām no longer an operator
So I donāt know why
But suddenly I donāt know why it doesnāt even go with the modification and even when Iām not an operator

