[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

    narrowtux

    Shortcuts
    Version 0.2.6​
    Download
    Shortcuts.jar
    Source code
    Donate
    Features
    • 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.
    Usage
    • 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
    Changelog
    Version 0.2.6
    • Updated for NarrowtuxLib.
    View the whole changelog
    Video


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

    Todo
    • Add an update command
     
  2. Offline

    morizuki

    when I set a shortcut, does my player also can use my shortcut? or just me?
     
  3. Offline

    der_robert

    I test it now ... feedback in 15 45min :)

    It works great !!!

    BTW. Schöne größe aus der Saale Stadt Halle :)
     
  4. Offline

    narrowtux

    No. Shortcuts you set are only visible for you. I'll work on global shortcuts, though.
     
    morizuki likes this.
  5. Offline

    morizuki

    do i need the latest dev BC?

    cause I'm getting this whenever I press any key..

    Code:
    2011-08-01 01:03:49 [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:338)
    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) 
     
  6. Offline

    narrowtux

    yep, you need the latest ;)
    This is because Afforess made a stupid programming error in the BukkitContrib release.
     
  7. Offline

    morizuki

    aw okok.. I'm having trouble on all of the dev bukkitcontrib :( so I'm gonna wait they fix my error..
     
  8. Offline

    narrowtux

    You can also wait for Spout 0.1 release which should be done later this day.
     
    morizuki likes this.
  9. Offline

    morizuki

    alright then.. XD thanks XD
     
  10. Offline

    Diamond00744

    Thank you!
     
  11. Offline

    Grammar Troll

    Spout is the new BukkitContrib, and since all the names and such were refactored, all the BukkitContrib plugins will have to be updated to use Spout.
     
  12. Offline

    narrowtux

    I know ;)
    I'll first finish the GUI support for the assistant class, then release it.
     
  13. Offline

    Grammar Troll

    Thanks a lot!
     
  14. Offline

    narrowtux

    Release v0.2.5
    • Updated for spout.

    (No GUI at the moment, I felt like releasing a compatible version is more important first).

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

    Moe041991

    judged by you accent in your video you are german :p
     
  16. Offline

    Darkness117

    Code:
    23:54:29 [SEVERE] Error occurred while enabling Shortcuts v0.2.5 (Is it up to da
    te?): org/getspout/spoutapi/event/input/InputListener
    java.lang.NoClassDefFoundError: org/getspout/spoutapi/event/input/InputListener
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClassCond(Unknown Source)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$000(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:36)
            at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoad
    er.java:219)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:32)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:24)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at com.narrowtux.shortcuts.ShortcutsMain.onEnable(ShortcutsMain.java:56)
    
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:878)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:272)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146
    )
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassNotFoundException: org.getspout.spoutapi.event.input.I
    nputListener
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:24)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 26 more
    Any idea what I did wrong?
     
  17. Offline

    narrowtux

    Is Spout installed?
     
  18. Offline

    rarevapoizer

    when i download the jar. file it comes out as a win RAR and when i open the win RAR there is no jar. file. what to do?
     
  19. Offline

    narrowtux

    You have to configure your browser not to open files after downloading. Often this can be done separately for different filetypes.
     
  20. Offline

    Darkness117

    I installed it an type /sh while in game
    "you you need spoutcraft"
    what am I missing ?
     
  21. Offline

    JargonTheRed

    Is there any possibility of adding the extra keys on a gaming mouse? Either that, or I'm just doing something wrong ^.=.^; Everything else works just fine
     
  22. Offline

    narrowtux

    Sorry for answering late, Spoutcraft is a client mod you got to install to use Spout plugins.
    Mouseclicks are not (yet) part of the Spout API. I may add it...
     
  23. Offline

    skeletonofchaos

    I swear to god every time I go to make a plugin you already did :).
     
  24. Offline

    Aidoboy

    I want LOTC to use this, Saying "Hail!" every time you see someone gets tedious
     
  25. Offline

    cmoupetr

    Code:
    20:49:38 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'sh'
    in plugin Shortcuts v0.2.5
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:1
    9)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:
    98)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler
    java:711)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
            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)
    Caused by: java.lang.NoSuchMethodError: org.getspout.spoutapi.player.SpoutPlaye
    .hasPermission(Ljava/lang/String;)Z
            at com.narrowtux.shortcuts.ShortcutsMain.onCommand(ShortcutsMain.java:1
    1)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    >
    I also get this and I'm assuming this is more the problem


    Code:
    20:52:28 [SEVERE] java.lang.NoSuchFieldException: perm
    20:52:28 [SEVERE]       at java.lang.Class.getDeclaredField(Unknown Source)
    20:52:28 [SEVERE]       at org.getspout.spout.player.SpoutCraftPlayer.<init>(Spo
    utCraftPlayer.java:89)
    20:52:28 [SEVERE]       at org.getspout.spout.player.SpoutCraftPlayer.updateBukk
    itEntity(SpoutCraftPlayer.java:606)
    20:52:28 [SEVERE]       at org.getspout.spout.player.SpoutCraftPlayer.getPlayer(
    SpoutCraftPlayer.java:638)
    20:52:28 [SEVERE]       at org.getspout.spout.SpoutPlayerListener.updatePlayerEv
    ent(SpoutPlayerListener.java:117)
    20:52:28 [SEVERE]       at org.getspout.spout.SpoutPlayerListener.onPlayerTelepo
    rt(SpoutPlayerListener.java:38)
    20:52:28 [SEVERE]       at org.bukkit.plugin.java.JavaPluginLoader$8.execute(Jav
    aPluginLoader.java:293)
    20:52:28 [SEVERE]       at org.bukkit.plugin.RegisteredListener.callEvent(Regist
    eredListener.java:58)
    20:52:28 [SEVERE]       at org.bukkit.plugin.SimplePluginManager.callEvent(Simpl
    ePluginManager.java:321)
    20:52:28 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:373)
    20:52:28 [SEVERE]       at org.getspout.spout.player.SpoutCraftPlayer.updateNetS
    erverHandler(SpoutCraftPlayer.java:585)
    20:52:28 [SEVERE]       at org.getspout.spout.SpoutPlayerListener.onPlayerJoin(S
    poutPlayerListener.java:28)
    20:52:28 [SEVERE]       at org.bukkit.plugin.java.JavaPluginLoader$1.execute(Jav
    aPluginLoader.java:244)
    20:52:28 [SEVERE]       at org.bukkit.plugin.RegisteredListener.callEvent(Regist
    eredListener.java:58)
    20:52:28 [SEVERE]       at org.bukkit.plugin.SimplePluginManager.callEvent(Simpl
    ePluginManager.java:321)
    20:52:28 [SEVERE]       at net.minecraft.server.ServerConfigurationManager.c(Ser
    verConfigurationManager.java:124)
    20:52:28 [SEVERE]       at net.minecraft.server.NetLoginHandler.b(NetLoginHandle
    r.java:97)
    20:52:28 [SEVERE]       at net.minecraft.server.NetLoginHandler.a(NetLoginHandle
    r.java:74)
    20:52:28 [SEVERE]       at net.minecraft.server.Packet1Login.a(SourceFile:43)
    20:52:28 [SEVERE]       at net.minecraft.server.NetworkManager.b(NetworkManager.
    java:226)
    20:52:28 [SEVERE]       at net.minecraft.server.NetLoginHandler.a(NetLoginHandle
    r.java:40)
    20:52:28 [SEVERE]       at net.minecraft.server.NetworkListenThread.a(SourceFile
    :91)
    20:52:28 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:451)
    20:52:28 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    20:52:28 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
     
  26. Offline

    nova779

    WTF Is spoutcraft
     
  27. Offline

    Killah

    Hi!
    I like your plugin ideas, but they have to use this spoutcraft stuff? I mean on a big server I will have to tell every one of them to download spoutcraft and use it? I want to use plugins because the client don't have to fool around with downloading this, that, etc. So there's any alternative solution?
    Thanks
    Killah
     
  28. Offline

    narrowtux

    Seems you're using an outdated Craftbukkit. Update to 1000 at least.
    Spoutcraft is the client mod that works with spout. Spout (the plugin) and Spoutcraft communicate with each other, for example the Spoutcraft client sends Keypresses to the plugin which can be handled by other plugins. You have to install this client mod in order to use Shortcuts.

    No, only the client mod can tell me which keys were pressed.
    Not everyone playing on your server needs to install the client mod, just the users who want to use the extended features of my plugins, or when they want to use shortcuts.

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

    omgmac

    I keep typing /sh and it says I need Spoutcraft but thats what im using.
     
  30. Offline

    Smex

    Create works perfectly!
     
  31. Offline

    nova779

    Spout doesnt seem to want to work on my mac?
     

Share This Page