Supported MC VersionsAll Versions
Basic Commands/x, /mcjava

MCJava
Run java code directly from chat

MCJava is a beautiful and simple way to run Java code directly from the chat. Just type /mcjava console (or /x console) to open up a new console, and type your code away!

You can also type /x <java code> to run a single line of java code!



Usage


To run a single line of java code, you can type /x <java code>. But, if you wanna get more fancy, you can open up a new console with either /mcjava console or /x console (or /x open).

Inside of this console, you can make and set variables, load new classes, and more!

Examples