LabyMod Key Inputs Library 1.0

You are now able to check for key inputs of players!

  1. Cerus
    Tested Minecraft Versions:
    • 1.8
    • 1.12
    Source Code:
    https://github.com/RealCerus/KeyInputsPlugin
    Contributors:
    Cerus
    LabyMod 3 with the Key Inputs Addon is required!
    You need to install the LabyModAPI on your server!

    Installing the plugin
    1. Download it
    2. Download the LabyModAPI
    3. Put both in your plugins folder
    4. Reload / restart your server

    Installing the addon
    1. Download the Key Inputs Addon for your Minecraft version (1.12.2, 1.8.9)
    2. Open your LabyMod folder (%appdata%/.minecraft/LabyMod)
    3. Open your addons folder (addons-1.8 or addons-1.12)
    4. Put the file in the addons folder

    How to use this library
    - Add this library to your buildpath or use Maven:
    Code (Text):
    <!-- Cerus repository -->
    <repository>
        <id>cerus</id>
        <url>https://maven.cerus-dev.de/</url>
    </repoitory>

    <!-- Key Inputs dependency -->
    <dependency>
        <groupId>de.cerus</groupId>
        <artifactId>KeyInputsPlugin</artifactId>
        <version>1.0</version>
    </dependency>
    - Register a listener and listen to the LabyModClientKeyEvent. Example:
    Code (Java):
    package tld.yourname.project.listeners;

    import de.cerus.keyinputs.plugin.events.LabyModClientKeyEvent;
    import org.bukkit.event.EventHandler;
    import org.bukkit.event.Listener;

    public class TestListener implements Listener {

        @EventHandler
        public void onClientKeyEvent(LabyModClientKeyEvent event) {
            event.getPlayer().sendMessage("Key: " + event.getKey() + " (" + event.getKeyName() + ")");
        }
    }
     
    TomCreeper likes this.