25 ::ll::TypedStorage<8, 8, ::DedicatedServer&> mServer;
26 ::ll::TypedStorage<8, 8, ::AllowListFile&> mAllowListFile;
27 ::ll::TypedStorage<8, 8, ::PermissionsFile&> mPermissionsFile;
28 ::ll::TypedStorage<8, 8, ::CDNConfig&> mCDNConfig;
29 ::ll::TypedStorage<8, 8, ::Level*> mLevel;
30 ::ll::TypedStorage<8, 8, ::ScriptSettings*> mScriptSettings;
31 ::ll::TypedStorage<8, 8, ::MinecraftCommands*> mCommands;
32 ::ll::TypedStorage<8, 8, ::std::string const&> mSessionID;
37 ScriptDedicatedServerUtils& operator=(ScriptDedicatedServerUtils
const&);
38 ScriptDedicatedServerUtils(ScriptDedicatedServerUtils
const&);
39 ScriptDedicatedServerUtils();
44 virtual ~ScriptDedicatedServerUtils() =
default;
46 virtual bool saveHold() ;
48 virtual bool saveResume() ;
50 virtual ::std::optional<::std::vector<::SnapshotFilenameAndLength>> saveQuery() ;
58 virtual ::std::vector<::IScriptDedicatedServerUtils::AllowListEntryInfo> getAllowListEntries()
const ;
60 virtual void clearAllowList() ;
62 virtual bool reloadAllowListFile() ;
64 virtual void setAllowListEnabled(
bool enabled) ;
66 virtual bool getAllowListEnabled()
const ;
68 virtual bool reloadPermissionsFile() ;
70 virtual ::std::unordered_map<::std::string, ::PlayerPermissionLevel>
const& getPermissions()
const ;
73 setPermissions(::std::unordered_map<::std::string, ::PlayerPermissionLevel>
const& permissionData) ;
75 virtual bool setPlayerPermission(::std::string
const& xuid, ::PlayerPermissionLevel permission) ;
77 virtual bool reloadScriptConfig() ;
79 virtual bool reloadCDNConfig() ;
81 virtual ::std::string
const& getSessionID()
const ;
83 virtual void stopServer() ;
89 MCAPI
bool $saveHold();
91 MCAPI
bool $saveResume();
93 MCAPI ::std::optional<::std::vector<::SnapshotFilenameAndLength>> $saveQuery();
101 MCAPI ::std::vector<::IScriptDedicatedServerUtils::AllowListEntryInfo> $getAllowListEntries()
const;
103 MCAPI
void $clearAllowList();
105 MCAPI
bool $reloadAllowListFile();
107 MCAPI
void $setAllowListEnabled(
bool enabled);
109 MCAPI
bool $getAllowListEnabled()
const;
111 MCAPI
bool $reloadPermissionsFile();
113 MCAPI ::std::unordered_map<::std::string, ::PlayerPermissionLevel>
const& $getPermissions()
const;
115 MCAPI
bool $setPermissions(::std::unordered_map<::std::string, ::PlayerPermissionLevel>
const& permissionData);
117 MCAPI
bool $setPlayerPermission(::std::string
const& xuid, ::PlayerPermissionLevel permission);
119 MCAPI
bool $reloadScriptConfig();
121 MCAPI
bool $reloadCDNConfig();
123 MCAPI ::std::string
const& $getSessionID()
const;
125 MCAPI
void $stopServer();
Definition IScriptDedicatedServerUtils.h:21