BetterAlias

logo2

Tired of entering tedious and repetitive commands? Wish you could group commands into one short and easy to use command?

With BetterAlias you can specify any number of aliases for your commands!

Features

  • Create aliases for long repetitive commands:
    /permissions player setgroup <playerName> VIP
    
    becomes
    /vip <playerName>
    
  • Combine multiple commands into one simple command
  • Compatible with your existing permissions/plugin commands!
  • Supports partial player name lookups (ie "e0n" to find "Ne0nx3r0")

Installation

  1. Add BetterAlias.jar to your plugins directory
  2. Once loaded an aliases.yml file will be created
  3. Customize the file and use /bareload to enable the changes.
  4. Use the examples inside aliases.yml to setup aliases for everyone to use! (or add a custom permission node for the command)

Usage

See the examples page.

Spanish video tutorial

Multiple Commands

Separate multiple commands with dashes (-):

tpthenkick: 
    1: 
      - /tp !1p !name
      - /kick !1p

The examples file that comes with the plugin includes examples of every type

-

https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of garan2314 garan2314 Feb 03, 2016 at 05:45 UTC - 0 likes

    Hello! I absolutely love this plugin, its one of my most favourite plugins I keep on my server. I've been a long time user of this plugin and made a ton of random minigames and all kinds of fancy stuff with just this plugin's config, along with command blocks and other stuff. Can I make a request for a feature for this plugin? I think it would be great if you setup a setting in the config, or maybe a command to cancel aliases which have wait times, for example: Let's say I have an alias to reboot my server:

    reboot:
      permission: reboot
      0:
        - console /fm &c&oRebooting server in 30 seconds.
        - wait 100 console /fm &c&oRebooting server in 25 seconds.
        - wait 200 console /fm &c&oRebooting server in 20 seconds.
        - wait 300 console /fm &c&oRebooting server in 15 seconds.
        - wait 400 console /fm &c&oRebooting server in 10 seconds.
        - wait 420 console /fm &c&oRebooting server in 9 seconds.
        - wait 440 console /fm &c&oRebooting server in 8 seconds.
        - wait 460 console /fm &c&oRebooting server in 7 seconds.
        - wait 480 console /fm &c&oRebooting server in 6 seconds.
        - wait 500 console /fm &c&oRebooting server in 5 seconds.
        - wait 520 console /fm &c&oRebooting server in 4 seconds.
        - wait 540 console /fm &c&oRebooting server in 3 seconds.
        - wait 560 console /fm &c&oRebooting server in 2 seconds.
        - wait 580 console /fm &c&oRebooting server in 1 seconds.
        - wait 585 console /fm &c&l&oRebooting the server, please join back in a minute!
        - wait 590 console /save-all
        - wait 600 console /restart
    

    Can you create a way to interrupt these waits, so that the commands are immediately executed(as in sped up), or simply cancel them entirely? It would be really helpful with such a feature in this plugin. Thanks!

    http://cdn2.minecraft-mp.com/images/banners/banner-104860-1451921429.gif

  • Avatar of QubeCraftMC QubeCraftMC Dec 12, 2015 at 00:12 UTC - 2 likes

    Hey, just wanted to say this is a great plugin and you should really consider releasing it on Spigot.

    Best of luck

  • Avatar of Formula350 Formula350 Dec 05, 2015 at 02:49 UTC - 0 likes

    @bingoberraz: Go If you use the plugin "Console Name" and have it configured to however I do (which may just be default lol) then it'll "break" the [SERVER] prefix of /say.
    So, for example, when I do /say This is only a test. it comes out as:
    [@] This is only a test.
    (It is also in all white BTW)

    Alternatively, if I do /say &1This is also a test, it comes out as:
    [@] This is also a test.

    Thus allowing you to customize it however you want :)

    As for removal of money, you would set it up as a multiple command alias. I'd have to do tests so I doubt this is correct, but will give you an idea...

    scream:
      '*':
         - console eco take !name 500
         - console /say [&b&l!name screams&f] &a!*
    

    Hope that helps.

  • Avatar of bingoberraz bingoberraz Nov 28, 2015 at 16:52 UTC - 0 likes

    @Formula350: Go

    like that you're trying to help me but. I know about the !1p and also I know I can use /broadcast but it has an ugly prefix and color imo. Ty anyway

    Is it possible to add a cost for a command? This would be a really nice feature.

    Last edited Nov 30, 2015 by bingoberraz
  • Avatar of Formula350 Formula350 Nov 24, 2015 at 21:35 UTC - 1 like

    @bingoberraz:
    I agree, autocomplete would be quite helpful heh However, there is the !1p that you can use, which will sorta-autocomplete the closest match to what you enter. For instance... I have one that will force a player to run the Rules command and the page specified by you, which we use in an instance a player happens to be not following one of them. The Alias I set is /forcerules and then the config is as such:

    forcerules:
        permission: rules.other
        0: |
          reply   &RED&ITALICForces the list of Rules to display on the player's screen.
          &RED 
          &GREEN     [&REDNOTE: &GRAY<number> &REDis the Page Number, and &BOLDis&RED required.&GREEN]
          &YELLOW     &BOLDUsage: &GRAY/rules <username> <number>
        2: player_as_op /sudo !1p rules !2
    


    So if you were to type /forcerules bingo 2 it would make me run (as if I were an Op) the command: /sudo bingoberraz rules 2, causing you to do /rules 2 and view Page 2 of the Rules :P

    Do you have an example of how you want broadcast to work?
    I don't know how your server is configured (or what plugins you use) but on mine, with Essentials and a single chat (no channels, per-world, or local), doing /broadcast does display it on everyone's screen.

    EDIT: BTW Neon, I updated my ticket, via a comment at least.

    Last edited Nov 24, 2015 by Formula350
  • Avatar of bingoberraz bingoberraz Nov 22, 2015 at 22:58 UTC - 0 likes

    I love this plugin. It's very useful! :)

    Is there anyway to add autocomplete feature to autocomplete online players? Or is this already implemented?

    edit: BROADCAST. Please! :D

    Exactly like Reply but to everyone <3

    Last edited Nov 23, 2015 by bingoberraz
  • Avatar of MrZylr MrZylr Nov 06, 2015 at 21:37 UTC - 0 likes

    @Ne0nx3r0: Go

    Thanks for the quick reply, how have I gone my whole life without knowing about this command?? Loving the plugin by the way. It will definitely be a necessity from here on out. Thank you so much!

  • Avatar of Ne0nx3r0 Ne0nx3r0 Nov 06, 2015 at 13:57 UTC - 0 likes

    @MrZylr: Go

    If you're using essentials just make the alias link to "/fly <player> off"

    BFAK:Ne0nx3r0,46501,32e4f23d87ec30eac4ec06c3dc720672ea59848e0a2c8c57628bef8f3cf59a74

  • Avatar of MrZylr MrZylr Nov 06, 2015 at 06:46 UTC - 0 likes

    Is there a way to run if statements? For example if I were to setup a fly command could I set it up so that it does, if player has fly disable run the fly command.

  • Avatar of jakeschwartz jakeschwartz Nov 03, 2015 at 20:50 UTC - 0 likes

    <<reply 2673679>>

    maybe, when the error happens on the /bareload it says my aliases file is empty.

Facts

Date created
Apr 22, 2012
Categories
Last update
Mar 19, 2015
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
BetterAlias
Downloads
20,085
Recent files

Authors