- Fougerite Compatibility
- All Versions
- Plugin's Engine
- Python (IronPython)
Giving a flag called Moderator in Rust++ will also make you moderator. Plugin devs should NOW use Player.Moderator instead.
Player.Moderator also checks if the datastore contains the key.
How to Install (As a server owner):
All you have to do, is to download the Moderator plugin and place It into the correct folder. Restart or reload the server, and then edit the inifile!
This plugin was made for those server owners, who don't want to give RCON Access to their users. This will help them, although not all the plugins support this.
Commands:
/listmods
/delmoderator name
/addmoderator name
/modflush - Flush the database, and readd everyone from the inifile.
Developers:
It's really easy to make your plugin support Moderators plugin. You will need only one function, and if you use JavaScript to develop a plugin, It's also possible to request all the moderators by a simple function!
Player.Moderator also checks if the datastore contains the key.
How to Install (As a server owner):
All you have to do, is to download the Moderator plugin and place It into the correct folder. Restart or reload the server, and then edit the inifile!
This plugin was made for those server owners, who don't want to give RCON Access to their users. This will help them, although not all the plugins support this.
Commands:
/listmods
/delmoderator name
/addmoderator name
/modflush - Flush the database, and readd everyone from the inifile.
Developers:
It's really easy to make your plugin support Moderators plugin. You will need only one function, and if you use JavaScript to develop a plugin, It's also possible to request all the moderators by a simple function!
Python:
def isMod(self, id):
return DataStore.ContainsKey("Moderators", id)
def On_Command(self, Player, cmd, args):
if cmd == "owner":
if Player.Admin or self.isMod(Player.SteamID):
JavaScript:
function isMod(id)
{
return DataStore.ContainsKey("Moderators", id);
}
function On_Command(Player, cmd, args)
{
if (cmd == "owner")
{
if (Player.Admin || isMod(Player.SteamID))
{
}
}
}