Add world as a global variable for plugins.

This commit is contained in:
Major-
2014-08-08 04:42:36 +01:00
parent 9469ebe297
commit 44b8972fb3
10 changed files with 19 additions and 18 deletions
+1 -1
View File
@@ -7,5 +7,5 @@ java_import 'org.apollo.game.model.entity.Player'
on :command, :broadcast, RIGHTS_ADMIN do |player, command|
message = command.arguments.to_a.join(" ")
broadcast = "[Broadcast] #{player.get_username.capitalize}: #{message}"
World.world.player_repository.each { |player| player.send_message(broadcast) }
$world.player_repository.each { |player| player.send_message(broadcast) }
end