[Release] In-Game Server/Resource Management ~ Ranks, Kick/Ban, Resource Start/Stop

Major Update: Everything started over from scratch using JS. Now supports dynamic commands/ranks.

Commands:

  • /smhelp - List all command, and arguments.
  • /guid
  • /kick
  • /ban
  • /rmstart - Start Resource
  • /rmstop - Stop Resource
  • /rmrestart

All commands use their name as permissions.

Example: (config.js)

  • Perms: [“rmstart”, “rmstop”, “rmrestart”]
  • Perms: [“kick”, “ban”, “rmrestart”]

To create a new Rank, do so inside this.Ranks (config.js)

Example:

{
    Title: "Custom",
    Users: ["userid from doing /guid"]
    Perms: ["somecustomcommand"]
}

To include all perms from another rank you would add the permission “i:RankName”

Example:

{
    Title: "Custom",
    Users: ["userid from doing /guid"]
    Perms: ["somecustomcommand", "i:Admin"]
}

To create a command inside the Config file you would append a new command object to Config.Commands (Use exports.TrainSportation.addCommand(name, func) outside. I didn’t test this it should work if it doesn’t let me know…)

Example:

somecustomcommand: (args, go, here) => {
	if (self.help) { // the help command will set this to true. Then call every func to get this message in /smhelp
		emitNet('chatMessage', self.source, "Help", [0, 255, 0], '/rmrestart <resourcename> [Restart resource]'); return;
	}
}
/somecustomcommand sdasd 123123 "something with spaces"

Download:
https://github.com/LexTheGreat/ServerManagement/archive/master.zip

9 Likes

Looking good, thanks for you contribution! Let me feature it on Discord. Although, what needed modifying the chat resource?!

@Boss https://forum.fivereborn.com/topic/1034/release-command-processor

This uses the Command Processor system for making commands. Command Processor replaces the chat resource.
Install that and https://forum.fivereborn.com/topic/2609/release-playervar-attach-variables-to-players before using this :stuck_out_tongue:

@Lex_The_Great said in [Release] In-Game ServerManagement ~ Ranks, Kick/Ban PlayerName/ID +More Soon:

@Boss https://forum.fivereborn.com/topic/1034/release-command-processor

This uses the Command Processor system for making commands. Command Processor replaces the chat resource.
Install that and https://forum.fivereborn.com/topic/2609/release-playervar-attach-variables-to-players before using this :stuck_out_tongue:

Why though?

@Boss Why do I use Command Processor it in this resource? It’s a good system, the only downside is that it changes the chat resource. Although it’s not a giant change!

@Lex_The_Great said in [Release] In-Game ServerManagement ~ Ranks, Kick/Ban PlayerName/ID +More Soon:

@Boss Why do I use Command Processor it in this resource? It’s a good system, the only downside is that it changes the chat resource. Although it’s not a giant change!

Please take a look at how I implemented commands in: https://forum.fivereborn.com/topic/2611/release-freeroam-2-by-kanersps

As modifying the resource is completely unnecessary.

Alright, I’ll take a look! Thanks

Is there a way to disable the menu, or change the keybind? I use a controller, and every time I hit ‘B’ a menu pops up.

When i try typing in the commands it doesnt do or show anything, i got command processor and the playervar installed properly and resources load no problems

yeah me too if one can help me and cody !!

I am also having this issue.

I reccomend using EssentialMode with the admin plugin

It would be best to use something else until I can get time to work on this. Havn’t had any free time

I don’t completely understand how to install it I dragged the Server management and the player var and the cmd processor into the resources folder and added them to the server yml, it says it loads it but when I get in game, i do /smhelp and nothing happens.

Read the comments above you :confused:

cmd processor has been updated as standalone per mod, no longer uses overriding the chat resource, so this mod is broken for now, needs a fix.

1 Like

  • Updated Command Proccessor (No need to replace chat anymore)
  • Removed GUID deprecation, uses GetPlayerIdentifiers now
  • Everything should be working as of 5/4/2017
  • Going to make the main post look nicer (maybe)

Update:
Added resource management commands to the trusted permission [/rmstart /rmstop /rmrestart]
giving people in the trusted list the ability to start and stop resources in-game.

I keep receiving this error any time I attempt to use the chat function in the console:

and I am unable to use any command.

Sorry you are having this problem D:

Do you have the required resource enabled as well?
https://forum.fivereborn.com/topic/2609/release-playervar-attach-variables-to-players

Make sure you have this in your AutoStartResources!
- PlayerVar
- ServerManagement

PS: I don’t think the error you see is relevant D: It happens without the resource even loaded.

lol, I forgot to remove the -master after on the folder names. I fixed it.

1 Like