Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- © 2013 CloudSixteen.com do not share, re-distribute or modify
- without permission of its author ([email protected]).
- --]]
- local COMMAND = Clockwork.command:New("Dispatch");
- COMMAND.tip = "Dispatch a message to all characters.";
- COMMAND.text = "<string Text>";
- COMMAND.flags = bit.bor(CMD_DEFAULT, CMD_FALLENOVER);
- COMMAND.access = "s";
- COMMAND.arguments = 1;
- -- Called when the command has been run.
- function COMMAND:OnRun(player, arguments)
- local text = table.concat(arguments, " ");
- if (text == "") then
- Clockwork.player:Notify(player, "You did not specify enough text!");
- return;
- end;
- Schema:SayDispatch(player, text);
- end;
- COMMAND:Register();
Advertisement
Add Comment
Please, Sign In to add comment