Advertisement
Guest User

Untitled

a guest
Jan 28th, 2015
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. pluggable_info = {
  2. 'owner': 'Starbound',
  3. 'command': 'GlobalAlert',
  4. 'version': 1.0,
  5. 'class': 'GlobalAlert',
  6. 'unloadable': True,
  7. 'main_args': [],
  8. 'custom_split': 0,
  9. 'can_use': 2,
  10. 'dependencies': [],
  11. 'author': 'Underbalanced',
  12. 'url': 'http://www.starnub.org',
  13. 'description': 'Issues a global alert to all players in large text!'
  14. }
  15. '''
  16. DEFAULT CONFIGURATION - !!! DO NOT EDIT !!! - EDIT INSTRUCTIONS
  17. 1. Load the Plugin either by starting the server or loading it through a command.
  18. 2. Edit the configuration found in the this Plugins Folder StarNub/Plugins/{Name}/{Name}_configuration.yml
  19. '''
  20. default_configuration = {}
  21.  
  22. from org.starnub.starnubserver.pluggable import Command
  23.  
  24. class GlobalAlert(Command):
  25. def __init__(self):
  26. pass
  27.  
  28. def onEnable(self):
  29. pass
  30.  
  31. def onDisable(self):
  32. pass
  33.  
  34. def onCommand(self, player_session, command, args_count, args):
  35. rebuilt_command = "/" + command
  36. for arg in args:
  37. rebuilt_command = rebuilt_command + " " + arg
  38. player_session.sendBroadcastMessageToServer(player_session, rebuilt_command)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement