Example #1
0
	def onEnable(self):
		self.config_manager = ConfigManager(path.join(self.plugin.getDataFolder().getAbsolutePath(), 'signs.yml'), default=self.default_config)
		self.config_manager.load_config()

		self.register_event(self.onPlayerInteract, PlayerInteractEvent)

		register_command(self.reload_command, 'reload-sign-config', permission="omneity.actionsigns.reload")
Example #2
0
	def onEnable(self):
		self.config_manager = ConfigManager(path.join(self.plugin.getDataFolder().getAbsolutePath(), 'spawn.yml'), default=self.default_config)
		self.config_manager.load_config()

		self.register_event(self.onPlayerJoinEvent, PlayerJoinEvent)
		self.register_event(self.onPlayerPortalEvent, PlayerPortalEvent)
		self.register_event(self.onPlayerRespawnEvent, PlayerRespawnEvent)

		register_command(self.spawnCommand, "spawn", permission="omneity.spawn.tp")
Example #3
0
	def onEnable(self):
		self.reply_states = dict()

		register_command(self.messageCommand, 'message', aliases=['m', 'msg', 't', 'tell'], description="Send a message to a online player.", usage="/<command> <player> <message>")
		register_command(self.replyCommand, 'reply', aliases=['r'], description="Reply to a message.", usage="/<command> <message>")
Example #4
0
	def onEnable(self):
		self.config_manager = ConfigManager(path.join(self.plugin.getDataFolder().getAbsolutePath(), 'warps.yml'), default=self.default_config)
		self.config_manager.load_config()

		register_command(self.command_warp, 'warp', description="Warp to places", usage="/<command> <warp> | set <warp> | del <warp> | list", permission="omneity.warp")