Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Oxide.Plugins
- {
- [Info("Commands", "Maxim Bauwelinck", "0.0.0")]
- class Commands : RustPlugin
- { //OnstartServer
- void Init()
- {
- Puts("Server successfully launched");
- }
- //Chat Commands
- [ChatCommand("help")]
- void help(BasePlayer player)
- {
- SendReply(player, "Here is a list with all the commands \n!players");
- }
- [ChatCommand("create group")]
- void Create_Group(BasePlayer player)
- {
- // RelationshipManager.trycreateteam(ConsoleSystem.CurrentArgs);
- }
- [ChatCommand("players")]
- void PlayerCount(BasePlayer player)
- {
- int playercount = BasePlayer.activePlayerList.Values.Count;
- SendReply(player, playercount == 1? "There's currently 1 player online":$"There's currently {playercount} online");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment