Hey all! I'm working on developing a plugin for a server, and as part of that I wanted to move some admin features to an SSSS menu, for ease of use.
Currently, I'm trying to load the Primitive Spawner example, and it loads successfully, but when I join the server as a server owner with full permissions, I don't have the menu.
I couldn't find anyone else talking about this, so I was hoping someone can help elucidate what I'm doing wrong?
#Primitive Spawner SSSS Example Not Working
1 messages · Page 1 of 1 (latest)
The images are just showing I have permissions and no menu, but the primitive spawner is loaded
Also, if it helps, to activate it I just used:
Show code
The code is just the primitive spawner code
Oh gotcha
Yeah I suspect that's the problem because loading other examples has been fine
Errr
But the primitive spawner just
Basically
Doesn't
Basegame permission checks for showing are global
So if you wanna show 1 based on permission you cant rly
Oh how lovely!
You have to either make all visible or make them all require 1 permission
Has a rly goof wrapper (i made it)
SSSS wrapper is my favorite part of that api
xd
Oh sweet!
You're probably gonna be like my absolute hero for this I'm gonna check it out
WHat if you trigger it by the command?
Lemme restart my server and try
Yes, it works if I use the in-game command
This is my enable function where I tried to load in the primitive spawner
The Coin Events and Size Handling are working, and the console is saying the example is loaded, but upon joining I receive no SSS menu
Very odd
I haven't checked deeply into the primitive spawner code, but my guess is it's just not checking if I have permissions when I join the server, and only checks when activating it?
Errr
Wdym
Like the code runs on server startup, meaning if it checks permissions when the code runs, I'm not on the server for it to approve me
But that's only if it's not trying to validate me when I join the server
Idk how it works I haven't looked into it I'm just trying to test examples 
Isnt it working here
It works when I run the in-game command, not when I use the TryActivateExample code
^
Try calling it later on
Can you show me hubertd repo
Huberts*
Good idea
If that works im killing hubert
I think it might be sending it based on a permission on join
But perms arent given on join
A group is yes but it takes a sec
Or maybe thats just cedmod moment
No dice
It activates, just doesn't give me the settings
No dependencies, no other plugins, and I all I have in this plugin is a thing modifying Coin Events and preliminary code for changing player size that I've come to realize doesn't even work lol
Call it when player joined
Instead
^
Pretty sure that's the exact problem lmao
It just doesn't check permissions when a player joins
This worked
Thats just a hubert example moment
^
Rather than SSSS issue
So yea
I still recommend using either custom or my wrappers
I just need to activate it while I'm on the server for it to work
gl writing ur own if you go down that route, it kinda stinks
I think I'm rather lazy and don't wanna make my own wrapper
Like with the hint system
Hot garbage
My wrapper i believe is the best one
Ik theres SSMenu or smth but never actually tested it out or seen the code
So idk how it behaves compared to mine
Lol I already put it on my dependencies in anticipation
Thats an example of a keybind
Registering is just
CustomSetting.Register(new ExampleKeybindSetting());
It should work its the same code i use on my server
is it work with #1341884121667993630 ?
i wouldnt know
i havent tested ss menu
i will try when i can
i dont use DefinedSettings
me too
so it depends what you do
yeah maybe it's would break.... sad