Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (13 sloc) 0.553 kB
from org.bukkit.event import Event
from java.util.logging import Level
scriptName = "PyExampleScript"
scriptVersion = "1"
def onEnable():
plugin.log(Level.INFO, "PyExampleScript loaded!")
plugin.registerEvent(Event.Type.PLAYER_JOIN, Event.Priority.Lowest, "onPlayerJoin")
def onDisable():
plugin.log(Level.INFO, "PyExampleScript unloaded!")
def onCommand(sender, command, label, args):
return False
def onPlayerJoin(type, args):
plugin.getServer().broadcastMessage("PyExampleScript says hi, " + args.getPlayer().getName())
Jump to Line
Something went wrong with that request. Please try again.