Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (16 sloc) 0.397 kB
class PlayerJoinedPlugin
include Purugin::Plugin
description 'PlayerJoined', 0.2
def on_enable
event(:player_join) do |e|
e.player.world.players.each do |p|
p.msg "Player #{e.player.name} has joined"
end
end
event(:player_quit) do |e|
e.player.world.players.each do |p|
p.msg "Player #{e.player.name} has quit"
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.