Resource icon

Moderators 1.4

No permission to download
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!


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))
        {
       
        }
    }
}
Author
DreTaX
Downloads
339
Views
996
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from DreTaX

Latest updates

  1. Fixes

    Some minimal code fixes
  2. Fixes

    Seems like I didn't update this on the website for a while, now I did. Lots of code fixes. New...

Latest reviews

A must-have plugin ! This plugin is supported by many other plugins, which allows better administration.
DreTaX
DreTaX
Cheers