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

    Waterflames

    Nope, updated it myself. Glad it helped!
     
    CoolOppo likes this.
  3. Offline

    migsthegod

    Waterflames

    There seems to be something wrong whenever i include "&system"
    Here is the error log:

    Code:
    2012-03-07 03:35:25 [SEVERE] Could not pass event PlayerCommandPreprocessEvent to bShortcut
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:441)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:811)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:778)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:761)
        at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:112)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:85)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:620)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:504)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.NullPointerException
        at util.bChat.broadcastMessage(bChat.java:152)
        at com.beecub.bShortcut.bConfigManager.performCommand(bConfigManager.java:112)
        at com.beecub.bShortcut.bConfigManager.handleShortcuts(bConfigManager.java:81)
        at com.beecub.bShortcut.bShortcutPlayerListener.onPlayerCommandPreprocess(bShortcutPlayerListener.java:31)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
        ... 12 more
     
  4. Offline

    chaseoes

    Waterflames
    It's not making a config on first start, and I get this when doing /bshortcut:
     
  5. Offline

    Waterflames

  6. Offline

    chaseoes

    Waterflames

    Code:
    2012-03-13 09:08:05 [SEVERE] bShortcut: Error while reading config!
    java.io.IOException: No such file or directory
        at java.io.UnixFileSystem.createFileExclusively(Native Method)
        at java.io.File.createNewFile(File.java:883)
        at com.beecub.bShortcut.bConfigManager.<init>(bConfigManager.java:32)
        at com.beecub.bShortcut.bShortcut.onEnable(bShortcut.java:50)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:363)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232)
        at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:374)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:361)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    
    Didn't make config on startup too (I assume the cause of that error).
     
  7. Offline

    Waterflames

    Try to put a imports.yml and config.yml in the plugin folder manually.
     
  8. Offline

    chaseoes

    Code:
    2012-03-13 14:53:31 [INFO] [bShortcut] Enabling bShortcut v1.2.1
    2012-03-13 14:53:31 [INFO] [bShortcut] version 1.2.1 is enabled!
    2012-03-13 14:53:31 [SEVERE] Error occurred while enabling bShortcut v1.2.1 (Is it up to date?)
    java.lang.NullPointerException
        at com.beecub.bShortcut.bConfigManager.load(bConfigManager.java:70)
        at com.beecub.bShortcut.bShortcut.onEnable(bShortcut.java:51)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:363)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232)
        at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:531)
        at org.bukkit.Bukkit.reload(Bukkit.java:174)
        at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:461)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:818)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:778)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:761)
        at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:112)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    
     
  9. Offline

    bitWolfy

    ^ This
    Thanks for helping us, Waterflames :D Appreciate it.
    I want this updated so badly :)

    EDIT: Creating an empty bShortcut folder did the trick. Works perfectly. Thanks!
     
  10. Offline

    coolo1

    Downloads broken.
     
  11. Offline

    ThoLav

  12. Offline

    Exxter

    Please please update or/and create a new project on bukkit dev.
     
  13. Offline

    Recon18

    An alternative would be MultiCommand i think this pluggin is better though
     
  14. Offline

    ThoLav

    bShortCut is the better plugin, because its acceping

    You can give $3 $4 $1 $1 to an shortcut, in Muco none, only like uyou entered it.
    And you have a lot of more possibilitys.
     
  15. Offline

    iJumbo

  16. I'm not currently using it, it'd be best to voice any issues with the plugin on it's BukkitDev page.
     
  17. Offline

    g0dlike97

    bShortcut works perfectly fine for me except it no longer creates the config which you will be fine if you've got the config from an earlier date.

    Not 100% sure if I'm allowed to do this but this is the current bShortcut I've been using. I've included the config in it too just in-case the plugin doesn't make it itself.

    Download link: <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Dec 14, 2016
    Godwar101 and AS1LV3RN1NJA like this.
  18. Offline

    mat2011

    Ima make /mod /admin /member commands :D
     
  19. Offline

    Exxter

    i use MyCommand now, i think its much better and up to date
     
  20. Download Broken?
     
  21. Offline

    iJumbo

    Been broken for a while.
     
  22. Offline

    iJumbo

    AS1LV3RN1NJA likes this.
  23. Offline

    tnemrap

    Is this working with the latest version of bukkit?
     
  24. Offline

    ST-DDT

    Yes, it works.
     
  25. Works with 1.4.6
     

Share This Page