Advertisement
j3d247

Untitled

Feb 16th, 2014
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. eventAPI.addHandler("chat_command",
  2. function(e,msg)
  3. for match in string.gmatch(msg, "[^ \t]+" ) do
  4. table.insert( tWords, match )
  5. end
  6. -- Commands List
  7. if tWords[1] == "winner" then
  8. winner(tWords[2])
  9. elseif tWords[1] == "refresh" then
  10. refreshScreen()
  11. elseif tWords[1] == "addplayer" then
  12. addPlayer(tWords[2])
  13. elseif tWords[1] == "RESTART" then
  14. restartGame()
  15. elseif tWords[1] == "help" then
  16. help()
  17. elseif tWords[1] == "start" then
  18. scoreboard()
  19. end
  20. end
  21. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement