Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pluggable_info = {
- 'owner': 'Starbound',
- 'command': 'GlobalAlert',
- 'version': 1.0,
- 'class': 'GlobalAlert',
- 'unloadable': True,
- 'main_args': [],
- 'custom_split': 0,
- 'can_use': 2,
- 'dependencies': [],
- 'author': 'Underbalanced',
- 'url': 'http://www.starnub.org',
- 'description': 'Issues a global alert to all players in large text!'
- }
- '''
- DEFAULT CONFIGURATION - !!! DO NOT EDIT !!! - EDIT INSTRUCTIONS
- 1. Load the Plugin either by starting the server or loading it through a command.
- 2. Edit the configuration found in the this Plugins Folder StarNub/Plugins/{Name}/{Name}_configuration.yml
- '''
- default_configuration = {}
- from org.starnub.starnubserver.pluggable import Command
- class GlobalAlert(Command):
- def __init__(self):
- pass
- def onEnable(self):
- pass
- def onDisable(self):
- pass
- def onCommand(self, player_session, command, args_count, args):
- rebuilt_command = "/" + command
- for arg in args:
- rebuilt_command = rebuilt_command + " " + arg
- player_session.sendBroadcastMessageToServer(player_session, rebuilt_command)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement