JShell 0.0.3

JShell REPL in Minecraft

  1. bramhaag
    Native Minecraft Version:
    1.16
    Tested Minecraft Versions:
    • 1.16
    Source Code:
    https://github.com/bramhaag/JShell/
    JShell is Java's REPL (read-eval-print loop) tool introduced in JDK 9. With this plugin you can use JShell in Minecraft!

    Due to obvious security issues this plugin should only be used in testing environments!

    Prerequisites
    • JDK 14 or higher
    • Spigot 1.16 or higher

    Installation
    Installation is simple, just drag and drop the jar into the plugins folder and you should be good to go.

    NOTE: You need to run your server with JDK 14 (or higher) for this to work. Instead of starting the server with the java command, start it with "path\to\jdk14\bin\java". For example:
    Code (Text):
    "C:\Program Files\Java\jdk-14\bin\java" -Xms512M -Xmx4096M -jar spigot.jar
    Using the plugin
    You can start or continue a JShell session with the /jshell command. This puts you into shell mode. Shell mode means that everything you enter is evaluated in the shell instead of send in chat. To exit the shell, type /exit. The shell also has some other commands, such as /variables and /imports.

    To use the /jshell command, you have to have the jshell.execute permission

    Commands
    • /jshell (code) - Create or resume a JShell session. Optionally you can instantly run code by using the (code) argument.
    • /exit - Exit the JShell session.
    • /variables - See all variables from your session.
    • /imports - See all imports from your session.
    • /clear - Exit and clear the JShell session. This will remove all imports and variables.
    Configuration
    The plugin also has a config.yml file, in this file you can configure the default imports and predefined variables for every shell. You can find templates to add new imports and variables in the config file.

    Demonstration
    A demonstration can be found here

Recent Updates

  1. JShell 0.0.3
  2. JShell v0.0.2

Recent Reviews

  1. Perzan
    Perzan
    1/5,
    Version: 0.0.2
    Many bugs/problems with this plugin. It says it has been tested for 1.15, but you can tell this plugin has probably been neglected for a while now.
    1. bramhaag
      Author's Response
      The plugin is not neglected nor broken. The latest releases of the plugin (v0.0.2 and v0.0.3) have been tested against the latest versions of Spigot. As the new Spigot updates didn't break anything, no updates were necessary.

      The issue seems to be on your end. Please make sure if you've done the following:
      - Make sure your JDK is up-to-date
      - Run the server using the JDK (>=14 for v0.0.3 and >=9 for v0.0.2)
      - Make sure your Spigot is up-to-date
      - Make sure your permissions are configured correctly (/jshell needs the jshell.execute permission)

      If you need further assistance please reach out via either the discussion page or a GitHub issue instead of instantly leaving a 1 star review...