Hello,
I have few ideas how to achieve it, but I would like a second opinion for a method that would definitely do what I want, instead of me bumping into many problems half way and having to work around it.
Cheers !
Solved Auto granting permissions based on day of week?
Discussion in 'Rust Development' started by -=Skate=-, Oct 4, 2017.
-
I suppose you could use this to get which day it currently is?
Code:DateTime.Today.DayOfWeek
-
Im considering using Cron Library for Rust | Oxide to help me out with timed event execution as the command would have to be executed at a certain hour. However, what can be done about the actual execution of a command ? How do I call "grant group default permission.allow" ?
[EDIT]: Nwm, found it: ConsoleSystem.Run(ConsoleSystem.Option.Server.Quiet(), "grant group default permission.allow", null);Last edited by a moderator: Oct 5, 2017 -
Wulf Community Admin
-
What would be an exact syntax for that ?
e.g. "permission.GrantGroup(default, permission.allow) ? -
Wulf Community Admin
permission.GrantGroupPermission("default", "permission.allow", this); -
No errors in console, but it doesn't do anything when called either.
-
Wulf Community Admin
-
//ConsoleSystem.Run(ConsoleSystem.Option.Server.Quiet(), "grant group default permission.allow", null);
permission.GrantGroupPermission("default", "permission.allow", this);
Got them both on the same line when called. This does nothing, but if I swap comment outs, it works. -
Wulf Community Admin
-
Just did, no reaction whatsoever.
[DOUBLEPOST=1507168235][/DOUBLEPOST]Also, while on similar topic, is there a way to call chat commands via plugin as admin ? Cos my other option would be re-write other plugins to have console commands registered. -
Wulf Community Admin
-
No, commands would be of similar nature as "/kits resetdata"
Last edited by a moderator: Oct 5, 2017 -
Wulf Community Admin
-
No SendReply, just /data folder management
[DOUBLEPOST=1507170245][/DOUBLEPOST]So what would be the command to call it ?