Macuyiko / minecraft-python

A Jython driven plugin and interpreter system for Minecraft (on top of Spigot)
BSD 3-Clause "New" or "Revised" License
227 stars 29 forks source link

Log in server console #25

Closed Magikh42 closed 5 years ago

Magikh42 commented 5 years ago

Can you add a command to print in Java console without using PluginLogger ?

Macuyiko commented 5 years ago

This can be done directly using Jython:

from java.lang import System as javasys
javasys.out.println("Hello world")

Will show in the Java console:

[17:07:51] [Thread-20/INFO]: Hello world