#Primitive Spawner SSSS Example Not Working

1 messages · Page 1 of 1 (latest)

slim sentinel
#

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?

#

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:

slim sentinel
brave minnow
#

Btw SecretAPI has a good SSSS wrapper

#

Basegame kinda sucks for ssss

slim sentinel
#

Oh gotcha

brave minnow
#

You cant rly do good permission checks on them

slim sentinel
brave minnow
#

Errr

slim sentinel
#

But the primitive spawner just

brave minnow
#

Basically

slim sentinel
#

Doesn't

brave minnow
#

Basegame permission checks for showing are global

#

So if you wanna show 1 based on permission you cant rly

slim sentinel
#

Oh how lovely!

brave minnow
#

You have to either make all visible or make them all require 1 permission

brave minnow
#

SSSS wrapper is my favorite part of that api

#

xd

slim sentinel
#

Oh sweet!

#

You're probably gonna be like my absolute hero for this I'm gonna check it out

muted kite
slim sentinel
#

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?

slim sentinel
#

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 why

brave minnow
slim sentinel
muted kite
#

Try calling it later on

brave minnow
#

Can you show me hubertd repo

muted kite
#

like in OnWaitingForPlayers

#

or something

brave minnow
#

Huberts*

slim sentinel
muted kite
#

I do remember activating SSS on enable

#

and it worked fine

brave minnow
brave minnow
#

But perms arent given on join

#

A group is yes but it takes a sec

#

Or maybe thats just cedmod moment

slim sentinel
#

It activates, just doesn't give me the settings

muted kite
#

Do you have any other plugins

#

that might conflict it

brave minnow
#

Repo*

muted kite
slim sentinel
# muted kite Do you have any other plugins

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

brave minnow
#

Instead

slim sentinel
#

I'm gonna call it on round start

#

See if that works

brave minnow
#

It doesnt appear to actually resend

#

When player joins

#

Thats just a hubert moment

slim sentinel
#

^
Pretty sure that's the exact problem lmao

#

It just doesn't check permissions when a player joins

slim sentinel
brave minnow
#

Thats just a hubert example moment

slim sentinel
#

^

brave minnow
#

Rather than SSSS issue

#

So yea

#

I still recommend using either custom or my wrappers

slim sentinel
#

I just need to activate it while I'm on the server for it to work

brave minnow
#

gl writing ur own if you go down that route, it kinda stinks

slim sentinel
#

Like with the hint system

#

Hot garbage

brave minnow
#

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

slim sentinel
#

Lol I already put it on my dependencies in anticipation

brave minnow
#

Thats an example of a keybind

#

Registering is just
CustomSetting.Register(new ExampleKeybindSetting());

slim sentinel
#

Thank god

#

My hero 🙏

brave minnow
#

It should work its the same code i use on my server

brave minnow
#

i havent tested ss menu

cyan glen
brave minnow
#

i dont use DefinedSettings

cyan glen
#

me too

brave minnow
#

so it depends what you do

cyan glen
#

yeah maybe it's would break.... sad