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 void saveHold(::std::function<
void(
bool)>&& callback) ;
48 virtual void saveResume(::std::function<
void(
bool)>&& callback) ;
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 MCNAPI
void $saveHold(::std::function<
void(
bool)>&& callback);
91 MCNAPI
void $saveResume(::std::function<
void(
bool)>&& callback);
93 MCNAPI ::std::optional<::std::vector<::SnapshotFilenameAndLength>>
$saveQuery();
113 MCNAPI ::std::unordered_map<::std::string, ::PlayerPermissionLevel>
const&
$getPermissions()
const;
115 MCNAPI
bool $setPermissions(::std::unordered_map<::std::string, ::PlayerPermissionLevel>
const& permissionData);
Definition IScriptDedicatedServerUtils.h:21