Advertisement
AutismAlex

Untitled

Dec 17th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. using System;
  2. using UnityEngine;
  3. using Rocket.API;
  4. using Rocket.Unturned.Player;
  5. using Rocket.Unturned;
  6. using Rocket.Unturned.Commands;
  7. using Rocket.Unturned.Chat;
  8. using System.Collections.Generic;
  9.  
  10. namespace Sample
  11. {
  12. public class CommandHello : IRocketCommand
  13. {
  14. public AllowedCaller AllowedCaller => AllowedCaller.Both;
  15.  
  16. public string Name => "hello";
  17.  
  18. public string Help => "A sample command";
  19.  
  20. public string Syntax => "<player>";
  21.  
  22. public List<string> Aliases => new List<string>();
  23.  
  24. public List<string> Permissions => new List<string>() { "myplugin.permission" };
  25.  
  26. public void Execute(IRocketPlayer caller, string[] command)
  27. {
  28. UnturnedChat.Say("Hello!");
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement