Inactive [MISC] bShortcut 1.1.0 - define Shortcuts for Commands [1000]

Discussion in 'Inactive/Unsupported Plugins' started by beecub, Apr 29, 2011.

  1. Offline

    beecub

    bShortCut - Shortcuts:
    Version: 1.2.0
    Download bShortcut
    [​IMG]


    You dont want to type long commands or messages?, you wanna have a shortcut?
    This is your plugin.


    Features:
    • define shortcuts for commands or messages
    • use variables
    • type one command, perform several
    Examples:
    The commands are not from this plugin.
    They are only examples!, You can set up every plugins commands here.
    /fc [item] instead of /fullchest [item]
    /clean instead of /item 1 64
    /wl [name] instead of /weather lightning [name]
    /trules instead of Rules are on our website. go there and read them

    Permissions for all commands are obtained. Someone who does not have the permission to use /item also cant use /item.


    Commands:
    /bShortcut - reloads config file (use it after changes in your config)


    Variables:
    &args - All arguments given to the command
    &player - Name of player whos performing the command
    &[number] - One of the given arguments. Example: &2
    &system - As first parameter in your perform message to write as "system". Example:
    - '&system&args'
    &onlineplayers - Somewhere in your perform message to use this replaced for every player online
    &permissions - Use this as single perform message to show the plugin you want to check the permission for this command. Permission will be bShortcut.user.[YourShortcut] (Example: bShortcut.user./test)
    Any suggestions?


    Configuration:
    Show Spoiler

    The commands are not from this plugin.
    They are only examples!, You can set up every plugins commands here.

    Example - files:
    Show Spoiler

    Example 1:
    shortcuts:
    commands:​
    /g:​
    - /give &1 &2 &3​
    - /m &1 there you got &3 of &2 from me.​
    /myName:​
    - My name is &player​
    - Iam &1 years old​
    /t: /time &args​
    /cleanstone: /item 1 64​
    /breload: /bShortcut reload​

    Example 2:
    shortcuts:
    commands:​
    /gi: /give &args​
    /mp: /manpromote &args​
    /md: /mandemote &args​
    /fc: /fullchest &args​
    /rd: /remove drops &args​
    /tell: /m &args​
    /lbp: /lb player &args​
    /lba: /lb area &args​
    /lbrb: /lb rollback &args​
    /li: /lightning &args​
    /inv: /invsee &args​
    /clear: /clearinventory &args​
    /plugins: /ttttt &args​
    /v: /vanish &args​
    /sreload:​
    - '&4 Attention! Serverreload several seconds lags. Dont move or press any key to stay logged in!'​
    - /save-all​
    - /reload​
    /sstop:​
    - '&4 Attention!, stopping server!'​
    - /save-all​
    - /stop​



    Changelog:
    Version 1.2.0
    • More Wildcards (Variables)
    • Permissions support, not necessary
    Version 1.1.0
    • Variables
    • type one command, perform several
    Version 1.0.0
    • Initial Release
    Request?, i wanna do it. Give me Feedback. I want to hear your opinion. Thanks a lot :).
     
    Witek094, Mahagon, r3Fuze and 10 others like this.
  2. Offline

    ST-DDT

    How about %world% variable?
     
  3. Offline

    mrboese

    bShortcut is a great plugin, but something is remaining:
    Something to control your arguments, a help or auto-completing playernames, so I edited bShortcut:

    Changes:
    • Added possibility to add description to each command
    • Added auto-generated help to the commands
    • Added prevention of wrong argument count
    • Added argument control settings:
      • PLAYERNAME (Check if online, match name and replace input [fre -> freedom] )
      • NUMBER (Check if input is a float number, including min/max setting)
      • ACCEPTEDVARS (Only accept certain argument variables)
      • DESCRIPTION (Add a description to the argument)
    New configuration:

    To enable all the new features, the configuration have been changed:

    Code:
    shortcuts:
        commands:
            /breload:
                arguments: 0
                commands:
                - /bShortcut reload
    New: You have to add an argument count!
    New: All commands are in *.commands now!

    Code:
    /gm:
                arguments: 2
                description: Change gamemode to creative
                commands:
                - /gamemode &1 &2
                controls:
                    arg1:
                        PLAYERNAME:
                    arg2:
                        NUMBER:
                            MIN: 0
                            MAX: 1
                         DESCRIPTION:
                         - Gamemode (0/1)
    Here you can see argument control sections, using numbers.
    Note: You can use StringList (- abc) or nodes (abc:) to set control parameters

    Reference:
    • Control sections
      • ANY (Any Value)
      • PLAYERNAME (Validitates Playername)
        • ABSOLUTE: TRUE (Default: FALSE, dont match Name and replace argument)
        • ONLINE: TRUE (Default: FALSE, player have to be online)
        • PERM: <permission> (Check if player has permission)
        • OP: TRUE (Default: False, Check if player is op)
        • WORLD: <worldname> (Check if player is on a world)
      • NUMBER (Check if input is number)
        • MIN: <number> (Check if argument is greater/equal than <number>)
        • MAX: <number> (Check if argument is lesser/equal than <number>)
      • ACCEPTEDVARS (Only allow variables in the parameter list)
        • <yourvar1>
        • <yourvar2>
        • ...
      • MAP (map input variables to variables in parameter)
        • <toreplace>: <newtext>
        • ...
     
  4. Offline

    Jiggy

    @mrboese Can you update it for bukkit #1185 ?
     
  5. Offline

    e_zach

    is this now the current link in the OP?
    different dev, so just making sure.
     
  6. Offline

    Exxter

    This is a very very useful plugin and i dont know a alternative? Please, can u update this plugin to bukkitdev?
     
  7. Offline

    mrboese

    Updated version:
    Version 1.1.5

    Code:
    1.1.5:
    
    - PLAYERNAME now supports offline players (But cannot match the name)
    - Should work with the newest build
     

    Attached Files:

  8. Offline

    Exxter

    Huh? Where is beecub?
     
  9. Offline

    VanillaPie

    Hello.
    I have the following config:
    If I try to run it, I'll get an error, because &permissions was already checked -.-'
    But I want to check, if the user can make somebody moderator or approve someone.
    Where is my mistake?
     
  10. Offline

    mrboese

    &permissions?

    Here's a newer version, supporting permissions per command.

    Example:
    Code:
    shortcuts:
        commands:
            /moderator:
                arguments: 1
                permission: myshortcut.admin
                commands:
                - /pex user &1 group set moderator
                controls:
                    arg1:
                        PLAYERNAME:
     

    Attached Files:

  11. Offline

    Grimmy777

    this plugin would be sooo great if it could use the permissions that you set in a command to give the player a permission that they can not get any other way. It could then be used for things like allowing mod to give players build access but not being able to modify any other group permissions like adding them self to the admin group. There are many other uses it could have if it could do that but I think this would be one of the best uses.
     
  12. Offline

    LastKossack

    This is like a Sub-Plugin of bShortcut? kinda?
     
  13. Offline

    baffu

    so is this still being updated? its 1000
     
  14. Offline

    Jonas Knapp

    Update, PLS
     
  15. Offline

    mrboese

    It's a modified bShortcut.

    Download: <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Dec 14, 2016
  16. Still running 1.2.0 on my server and it seems to work fine.
     
  17. Offline

    DimsenJonas

    Console support? Maybe it already does, but it doesn't work in my Crafty console, which i don't think should make any difference
     
  18. If console support is going to be added, please make it optional.


    Also, boosCooldown is back up and running :D
    http://dev.bukkit.org/server-mods/booscooldowns/
     
  19. Offline

    coolo1

    Awesome plugin, please add as a variable &allmobs which is what it is. I would use it to kill all mobs.
     
  20. Offline

    DarthSalamon

    I really love this mod. There's one issue though. the Ampersand signs are giving me YAML parse errors:
    16:59:14 [SEVERE] Error occurred while enabling bShortcut v1.2.0 (Is it up to da
    te?): found duplicate anchor permissions; first occurence; second occurence
    found duplicate anchor permissions; first occurence
    in "<reader>", line 4, column 11:
    - &permissions
    ^
    second occurence
    in "<reader>", line 9, column 11:
    - &permissions
    ^

    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:150)
    at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.jav
    a:204)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :237)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :237)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :237)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    3)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)

    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:121)
    at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:423)
    at org.bukkit.util.config.Configuration.load(Configuration.java:92)
    at com.beecub.bShortcut.bConfigManager.<init>(bConfigManager.java:31)
    at com.beecub.bShortcut.bShortcut.onEnable(bShortcut.java:41)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:230)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:970)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:280)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:190)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:173
    )
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:440)
    at org.bukkit.Bukkit.reload(Bukkit.java:188)
    at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:
    22)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:16
    8)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    82)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:768)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:728)

    at org.bukkit.craftbukkit.entity.CraftPlayer.chat(CraftPlayer.java:207)
    at com.beecub.bShortcut.bConfigManager.performCommand(bConfigManager.jav
    a:115)
    at com.beecub.bShortcut.bConfigManager.handleShortcuts(bConfigManager.ja
    va:69)
    at com.beecub.bShortcut.bShortcutPlayerListener.onPlayerCommandPreproces
    s(bShortcutPlayerListener.java:30)
    at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.ja
    va:296)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:340)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:761)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:728)

    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:721)
    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:96)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:534)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:432)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
     
  21. Offline

    d4rkg0ds

    I feel like this should be a trivial setup problem but I can't for the life of me figure it out.

    Here's my config file.
    Code:
    shortcuts:
        commands:
            /grimkit:
                controls:
                arguments: 0
                commands:
                - /i diamondpickaxe 1
                - /i diamondsword 1
                - /i woodaxe 1
                - /i torch
    I updated to the most recent version of bshortcut and all my old shortcuts stopped working, instead the player spews out information about the command.
    If they type /grimkit they say: {controls=null, arguments=0, commands=[/i diamondpickaxe 1, /i diamondsword 1, /i woodaxe 1, /i torch]}
     
  22. Offline

    Jumbo

    Where is the download link... I really could use this plugin.
     
  23. Offline

    Shooty

  24. Offline

    Jumbo

  25. Offline

    Waterflames

    sourcemaker and AS1LV3RN1NJA like this.
  26. Offline

    maller

    Got this error on 1.1 R5 #1966

    Code:
    2012-02-29 17:15:02 [SEVERE] Could not load 'plugins/bShortcut.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/beecub/bShortcut/bShortcut : Unsupported major.minor version 51.0
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:155)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:288)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:212)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:190)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:166)
        at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Caused by: java.lang.UnsupportedClassVersionError: com/beecub/bShortcut/bShortcut : Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144)
        ... 8 more
    
     
  27. Offline

    Waterflames

    I recompiled it for Java 1.6. Redownload and it should work.
     
  28. Offline

    maller

    Nop. New error tho
    Code:
    2012-02-29 18:25:56 [INFO] [bShortcut] Enabling bShortcut v1.2.1
    2012-02-29 18:25:56 [INFO] [bShortcut] version 1.2.1 is enabled!
    2012-02-29 18:25:56 [SEVERE] Error occurred while enabling bShortcut v1.2.1 (Is it up to date?)
    java.lang.NoClassDefFoundError: org/bukkit/util/config/Configuration
        at com.beecub.bShortcut.bConfigManagerImport.<init>(bConfigManagerImport.java:29)
        at com.beecub.bShortcut.bConfigManager.<init>(bConfigManager.java:55)
        at com.beecub.bShortcut.bShortcut.onEnable(bShortcut.java:44)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:343)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:364)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:227)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:210)
        at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:357)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:344)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:175)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Caused by: java.lang.ClassNotFoundException: org.bukkit.util.config.Configuration
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        ... 13 more
    
     
  29. Offline

    Waterflames

    Whoops, forgot to change a piece of code.
    Now it should really be working :p Redownload from the same link.
     
  30. Offline

    Squirzy

    EDIT: Don't worry found the link, Thanks waterflames!
     
  31. Offline

    CoolOppo

    Is that the new version that the other guy made? BTW thanks, it saved my server! :p
     

Share This Page