07-12-2014, 09:52 PM
Well, the Java stuff's actually very simple, since we aren't using Java inside Python, instead we're using Jython, which runs inside Java. Basically, you access any part of the bukkit API by adding an import statement at the top of the python file and using it as you would in a Java plugin.
For instance, in Derps.py:
For instance, in Derps.py:
Code:
import org.bukkit.Bukkit.broadcastMessage as broadcastMessage
[...]
def BroadcastDerp(sender, message):
broadcastMessage(Color("2") + " * " + Color("f") + sender.getName() + Color("l") + " DERP! " + Color("d") + message)