[GEN] Shortcuts v0.2.6 - Create Keyboard Shortcuts for Commands and chat messages [1060]

Discussion in 'Inactive/Unsupported Plugins' started by narrowtux, Jul 23, 2011.

  1. Offline


    Version 0.2.6​
    Source code
    • Create Keyboard Shortcuts for multiple command and chat messages
    • One Shortcut can consist of multiple keys
    • One Shortcut can summon multiple chat messages and commands
    • Uses Spout and Spoutcraft
    • Uses NarrowtuxLib as dependency
    • All dependencies are automatically downloaded.
    • Bukkit Permissions support
    • You can update a shortcut. That even includes setting a new shortcut for the contained actions.
    • Add a shortcut
      • Type /sh add
      • a nice assistant will show up!
      • Press the shortcut you want to use. It'll be displayed.
      • Type in multiple chat messages and commands.
      • Type !done to finish setup
      • When you don't want to create a shortcut, type !cancel
    • Remove a shortcut
      • Type /sh remove
      • Press the shortcut you want to remove
    • List your shortcuts
      • Type /sh list
      • Update a shortcut
      • Type /sh update
      • Press the shortcut you want to update
      • The same assistant which also creates shortcuts comes up.
      • Remove items with the !remove command
      • Add items like you're used to
      • Change the shortcut by simply pressing a new one.
      • Type !done
    Version 0.2.6
    • Updated for NarrowtuxLib.
    View the whole changelog

    The currently only node is "shortcuts.use". It uses Bukkits built in Permissions system.

    • Add an update command
  2. Offline


    Is there any possiblity that you could add an screenshot or a video?
  3. Offline


    Yes but that does take long!

    Ok, a video is uploading, should be up in 40 mins!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 17, 2016
  4. Offline


    @narrowtux : Very nice job, haven't looked at the plugin yet but the concept is great. ^^
  5. Offline


    How is this even possible, Since when is there a keypresses API?
  6. Offline


    BukkitContrib added that. It uses a client mod to determine which keys are pressed.

    Here's the video!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 17, 2016
  7. Offline


    Thank you man, I hope your plugin gets very popular.
    And a protip, add a donation button. :-P

    Edit: Off-topic; are you from Germany?
  8. Offline


    yeah, I'm from germany. Did you hear that? :D
  9. Offline


    Yeah, also I can see that you are from Germany from your avatar. :D
    Btw, you have a very nice voice, and I love your plugin. :rolleyes:

    Edit: It's good to have such experienced people on such a great forum. :D
  10. Offline


    Added the donation link as well.
    I have this one in my signature, btw ;)
  11. Offline


    This plugin is great, you've saved my fingers!
  12. Offline


    lol, german for sure :D (erkennt man als deutscher wohl am besten ;) )

    Thank you for your plugin, a great supplement to the MinecraftMenuBar Mod.
  13. Offline


    Release v0.2
    • Added Bukkit Permissions support
    • Added update command
    • changed the in-assistant-commands (done, cancel) to have a ! in front of them
    • Added more in-assistant-commands
    • !list lists the currently set actions
    • !remove [/command|chat] removes a chat or a command from the actions-list
    • !help shows all available commands w/ description
  14. Offline


    Thank's i was actually JUST about to ask about ways to save keybinds between sessions ahah.
  15. Offline


    Shortcuts are saved to files! :D

    And now I got what you really meant :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 17, 2016
  16. Offline


    This is great. Would there be any way to have a server-wide or group option, for example to provide server-wide keybinds for all clients?
  17. Offline


    Hmm, that would be nice indeed.
    I'll see how I can implement that.
  18. Offline


    Hello @narrowtux!

    Your plugin has come recommended by the guys over at Bukkitcontrib as a solution to my Key Binding needs.

    I have everything set up, but I seem to be having a small problem.
    I can type in the commands I want no problem, but when it comes time to link them to a short cut, it gets strange. Most times it just won't do anything. If I have freshly reset the server it will let me do it. But only once.

    Like wise, when I finally have a short cut created, I can use it once, before requiring the server to be reset to use it again.

    The only things I see in my server log are:

    2011-07-26 08:07:07 [INFO] File C:\Games\<myusername>\GameServers\TC15244703828531582103846\plugins\Shortcuts\players.lst not found.
    2011-07-26 08:07:07 [INFO] [Shortcuts] v0.2 by [narrowtux] enabled.
    Any advice on the matter? Really looking forward to getting it set up.

    EDIT: Of course now that I have made the post, it seems to work fine. Are there any issues when a player first sets up his shortcuts? Or is this just general strange stuff on my end?
  19. Offline


    I saw that issue too, I fixed it partially. The problem arises when a key is pressed, but not released. I already fixed that for inventory and chat keys but I'm sure that there are some additional keys that could not be released.
    I fixed that part of the issue when you quit or disconnect the game and join to the same server later.
    I'll upload that when I'm home.
  20. Offline


    You sir, are awesome. And so is your plugin. I am a very thankful gamer nerd to know there is such an active and helpful community like this. I thank you, my server thanks you, and my poor exhausted fingers thank you.
  21. Offline


    Glad you're liking it so much :D
  22. Offline


    Looks great :) Do you know of any BukkitContrib plugins that do chat history (eg. press up and get the last message) and chat line editing? Perhaps that would fit with this plugin (if possible)?
  23. Offline


    I can't set the text of the chatbox for further editing now. When this is possible I may add some nice additions.

    Version 0.2.1 is up,
    it fixes the Shortcut not pressable bug forever. Just press your shortcuts within 5 seconds.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 17, 2016
  24. Offline


    I get this Error, I hope you can help me.
  25. Offline


    Get the latest developer build of BukkitContrib server plugin. There's a small error in the current version of BukkitContrib.
  26. Offline


    Thank you!
    Now it works. It's a great Plugin.
  27. Offline


    amazing....(dot dot dot)
  28. Offline


    Hey Hey @narrowtux, I noticed you have mentioned getting the latest server dev build for BukkitContrib - installing it on my server isn't going to ... I don't know.. create a catostraphic error destroying my players stuff... will it? If it is 'stable enough' I'll do it up.

    I only ask because my server log went to 10mb overnight with
    2011-07-27 12:15:18 [SEVERE] Could not pass event CUSTOM_EVENT to Shortcuts
    Again, thanks for this plugin, it really is saving my fingers a hassle.
  29. Offline


    22:36:25 [SEVERE] Could not pass event CUSTOM_EVENT to Shortcuts
    java.lang.ClassCastException: org.bukkitcontrib.event.input.KeyPressedEvent cannot be cast to org.bukkitcontrib.event.bukkitcontrib.BukkitContribSPEnable
            at org.bukkitcontrib.event.bukkitcontrib.BukkitContribListener.onCustomEvent(BukkitContribListener.java:25)
            at org.bukkit.plugin.java.JavaPluginLoader$87.execute(JavaPluginLoader.java:855)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
            at org.bukkitcontrib.packet.PacketKeyPress.run(PacketKeyPress.java:50)
            at org.bukkitcontrib.packet.CustomPacket.a(CustomPacket.java:57)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Error :D

    Help ?
    Ahja : Are you German ?
    Then PN me please =D

    I saw this BEFORE the post! Thanks ;)
    I download the new BukkitC.
  30. Offline


    It's safe to install this, you may come in contact with fresh bugs but they just concern the new things added.
    Yep, I'm german ;)

Share This Page