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
@@ -38,7 +38,7 @@ on :event, :second_object_action do |ctx, player, event|
end
on :event, :second_npc_action do |ctx, player, event|
npc = World.world.npc_repository.get(event.index)
npc = $world.npc_repository.get(event.index)
if BANKER_NPCS.include?(npc.id)
player.start_action(BankAction.new(player, npc.position))
ctx.break_handler_chain