I can't seem to figure out how to create server preferences. All the examples I can find use RTB preferences, and I would prefer to use a more up-to-date standard. Namely, I want to create something that would work with Blockland Glass. I'm under the impression that
Support_Preferences is the preference system that Blockland Glass uses, as per their
documentation. But I can't get it to work. I tried mimicking the code found in
this file. Here's my code:
registerPref("Test", "General", "Test", "number", "$Pref::Test::Test", "Support_Preferences", 50, "1 100 0", "updateServerSetting", 0, 0, 0);
I ran it, but it didn't work. I opened the
Preferences tab in the Blockland Glass
Server Settings. But nothing showed up. I tried
echo($Pref::Test::Test);
But it displayed nothing. However, when I run
echo(TestPrefs.getObject(0).variable);
it outputs
$Pref::Test::Test. I did not get an error message when I ran
registerPref, so I'm not sure what I did incorrectly.