Advertisement
Guest User

how to grab argument from command

a guest
Nov 24th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.57 KB | None | 0 0
  1. public class CommandGimme : IRocketCommand
  2.     {
  3.         public AllowedCaller AllowedCaller => AllowedCaller.Both;
  4.  
  5.         public string Name => "gimme";
  6.  
  7.         public string Help => "give an item";
  8.  
  9.         public string Syntax => "no syntax";
  10.  
  11.         public List<string> Aliases => new List<string>();
  12.  
  13.         public List<string> Permissions => new List<string>() { "custom.gimme" };
  14.  
  15.         public void Execute(IRocketPlayer caller, string[] command)
  16.         {
  17.             Rocket.Core.R.Commands.Execute(caller, "/i ", ARGUMENT VARIABLE);
  18.         }
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement