cShortcut
cShortcut
Current version: 1.0
Tired of typing long commands or messages? Want to create a quick and easy to use shortcut? This plugin is for you! Define shortcuts for commands and create custom commands. This plugin is based off of and inspired by bShortcut, a plugin I used to use back in the day.
Features
- Define shortcuts for commands.
- Execute multiple commands by typing only one command.
- Make the player using the command execute a command, or make the console execute the command.
- Send the player and/or broadcast messages.
- Many variables are available (even user-supplied ones!).
Examples
- /j: Shortened from /jumpto.
- /s: Shortened from /spawn.
- /rollback [player]: Shortened from /lb rollback player [player] since 50 days.
- /help: Override the default command and send players the message "Go to our website for help!".
Variables
Variable | Description |
---|---|
%name | The name of the player executing the command. |
%displayname | The display name of the player executing the command. |
%delay-x | Prefix a command with this to have it delayed by x seconds |
%[number] | Any argument supplied to the command (e.g. /mynameis %1 - the %1 will turn into 'chaseoes' if the command used is /mynameis chaseoes.) Using %0 will return all arguments used. |
The variables available in the current version are limited. Suggest new ones below!
Commands
Command | Description |
---|---|
/cshortcut | General plugin information. |
/cshortcut reload | Reloads the configuration. |
Configuration (more examples!)
commands: /test: - '/me I just sent a command!' - '%message Only the command sender (%name) can see this!' - '%broadcast &4The entire server can see this!' - '%console say I was forced to do this command! :(' /myage: - '%broadcast %name says that they are %1 years old!' - '%message %name, are you sure that you are %1 and not 5?' /rollback: - '%message &2Attempting to rollback %1 for %2 days...' - '/lb rollback player &1 since %2 days'
Hello,
Is there any way to add variables ? I'm looking for addding a %onlineplayer, so when I type cmd it will suggest list of online player to choose.
:)
Is there any way to make the shortcuts not case sensative? If so how?
@vipersonickenneth94
It workt with spigot 1.8
@shockpvp007
To my notice, you cant do that, however you can make the command /s shoptp or something thats more than one word. If you wish to take that on just reply on this thread and I will explain how to do it.
@SoAaron
Edited the config for you, now works!: http:pastebin.com/sd0cj7nD
The plugin won't work for me. Any help? Here's my config!
http://prntscr.com/6dz1t1
@vipersonickenneth94
works fine dude, youre just editing the config wrong : (
This plugin does not work on 1.8. When I edit the config file and try /cshortcut reload, it replaces my edits with a blank file. Stopping the server to edit it and starting it again does the same thing.
hi I was woundering how I would make a multi word shortcut such as commands: /s shop: permission: mycommand.sshop commands: - /warp survivalshop
@sanderjonk01
Cool!
Here is my config file of the CShortcut plugin:
# cShortcut version 1.2 by chaseoes. Configuration help: http://dev.bukkit.org/server-mods/cshortcut/ #
commands:
/events:
permission: custom.event
commands:
- '%message &f&l-==&c&lEVENTS&f&l==-'
- '%message &cGeen events'
/tag:
permission: clan.edit
commands:
- '%message &eJe clantag is nu: &7%1'
- '%console manuaddv %name suffix &8[%1&8]'
/clan:
permission: clan.info
commands:
- '%message &7[&aClanTag Help&7]'
- '%message &b/tag <tag> &8Zet je Clan Tag'
- '%message &b/tdel &8Verwijder je Clan Tag'
- '%message &5[Kleuren codes zijn toegestaan]'
/tdel:
permission: clan.delete
commands:
- '%message &eJe hebt nu geen clantag meer!'
- '%console manudelv %name suffix'
/help:
permission: custom.help
commands:
- '%message &7[&aFreeGameNetwork&7]'
- '%message &2Voor Speler (en voor vips)'
- '%message &b/tpa <naam> &8Speler'
- '%message &e/rules <pagina> &8Speler'
- '%message &b/report <naam> &8Speler'
- '%message &e/ticket <vraag> &8Speler'
- '%message &b/development &8Speler'
- '%message &e/tpaccept &8Speler'
- '%message &b/tpdeny &8Speler'
- '%message &e/sethome <naam> &8Speler'
- '%message &b/home <naam> &8Speler'
- '%message &e/delhome <naam> &8Speler'
- '%message &b/wow &8Speler'
- '%message &e/spawn &8Speler'
- '%message &b/events &8Speler'
- '%message &e/party &8Speler'
- '%message &2Voor VIP'
- '%message &b/time <night/day> &aVIP'
- '%message &8Binnenkort meer'
/wow:
permission: custom.wow
commands:
- '%message &aGewoon een commando, verder niets!'
/system:
permission: custom.system
commands:
- '%console say &4#=========#'
- '%console say &4||&cReloading!&4 ||'
- '%console say &4#=========#'
- '%delay-2 %message &6[System] &aSuccesfully reloaded! &8(SJ Commands)'
- '%console cshortcut reload'
/version:
permission: custom.version
commands:
- '%message &fDeze server draaid op Bukkit (Custom SJ 2.0) 1.7.4'
- '%message &8Hosted by: Offencive Servers NL'
- '%message &8Development: sanderjonk01, raoulberger'
- '%message &7Clan tags: 1.0 ALPHA'
- '%message &7Party: 5.3 BETA (/phome comming up)'
- '%message &7Warps: 1.0 ALPHA'
- '%message &7Custom Commands: 8.7 ALPHA'
- '%message &7Essentials Messages: 1.2 BETA'
/fgn:
permission: custom.fgn
commands:
- '%message &aGewoon een commando, verder niets!'
/raoulberger:
permission: custom.raoulberger
commands:
- '%message &cSorry, dit is een test commando waar we voorlopig nog mee bezig
zijn.'
/development:
permission: my.devinfo
commands:
- '%message &b+=====================+'
- '%message &b||&7OOooo&c[Development]&7oooOO&b||'
- '%message &b+=====================+'
- '%message &7Dit zijn de dingen waar we mee bezig zijn:'
- '%message &bCustomMade Minigame &6[Raoulberger]'
- '%message &bVersie 10.0 (warps etc)'
- '%message &bBug Fixes'
/report:
permission: my.report
commands:
- '%message &cDe report over&b %1 &cIs verstuurd, Bij 3 reports van deze persoon
wordt er gecheckt en geband!'
- '%console mail send sanderjonk01 &c&lAANGIFTEN:&b %name &cWilt&2 %1 &caangeven!'
- '%console scoreboard players add %1 report 1'
- '%console say &a[%name] &8Heeft &c[%1] &8Gereport'
- '%message &eGa naar &bhttp://www.fgnservers.tk &eom de report beter te omschrijven!'
/ticket:
permission: my.helpop
commands:
- '%console helpop %displayname heeft ticket ingestuurd: TITEL: &b%0 &c[Antwoord
hem]'
- '%message &bJe ticket is verstuurd!'
/plugman:
permission: my.plugman
commands:
- '%console say &c&l[ALERT] &2De server werkt op dit moment niet optimaal! We
zijn op dit moment bezig! &8(Status) &7[&c%1&7:&c%2&7]'
- '%message &c-----'
- '%message &c%1 &2----> &2%2'
- '%message &c-----'
- '%console plugman %1 %2'
- '%delay-3 %message &c-----'
- '%delay-3 %message &2&l%1 COMPLETE!'
- '%delay-3 %message &c-----'
/stats:
permission: my.status
commands:
- '%message &7[&aStatus %1]'
- '%message &eRank: {prefix:%1}'
- '%message &eClan: {suffix:%1}'
- '%message &eOperator: {operator:%1}'
- '%message &eXP Level: {lvl:%1} XP: {exp:%1}'
- '%message &ePlaats: {x:%1} , {y:%1} , {z:%1}'
- '%message &eWereld: {world:%1}'
- '%message &eHonger: {hunger:%1}'
- '%message &eLevens: {health:%1}'
- '%message &eIp: {ip:%1}'
- '%message &eGeld: {money:%1}'
- '%message &eItem Momenteel in hand: {itemname:%1}'
- '%message &5[Speler moet online zijn voor weergaven]'
/plugins:
permission: custom.plugins
commands:
- '%message &cWij gebruiken custom plugins! Deze zijn niet te downloaden!'
- '%message &fPlugins (4): &aSJCommands&f, &aSJEssentials&f, &aSJSafetyClient-v2&f,
&aBungeeAddon&f, &aSJParty'
/pl:
permission: custom.plugins
commands:
- '%message &cWij gebruiken custom plugins! Deze zijn niet te downloaden!'
- '%message &fPlugins (4): &aSJCommands&f, &aSJEssentials&f, &aSJSafetyClient-v2&f,
&aBungeeAddon&f, &aSJParty'
/reset:
permission: custom.reset
commands:
- '%message &8%1 &2Has been reset'
- '%console scoreboard players reset %1'
/pinfo:
permission: party.info
commands:
- '%message &c-===&c&lParty&c===-'
- '%message &8je naam:'
- '%message &7%displayname'
- '%message &c--'
- '%message &8Mensen in je party:'
- /scoreboard teams list %name
- '%message &c--'
- '%message &8Party omschrijving &b(/pdesc):'
- /notes view %name CONSOLE
- '%message &c--'
/pcreate:
permission: party.create
commands:
- '%message &c-===&c&lParty&c===-'
- '%console scoreboard teams add %name'
- '%delay-1 %console scoreboard teams join %name %name'
- '%message &8Je party is gemaakt, gebruik &b/padd <name>'
- '%console notes add %name Default Description D:'
- '%message &8Om mensen toe te voegen!'
/phome:
permission: party.home
commands:
- '%message &5Development mode'
/pwarp:
permission: party.warp
commands:
- '%message &eZijn we nog mee bezig!'
/padd:
permission: party.add
commands:
- '%message &c-===&c&lParty&c===-'
- '%console scoreboard teams join %name %1'
- '%message &b%1 &8Is geadd aan je party!'
- '%console say &b%name &2Heeft &b%1 &2aan zijn party toegevoegd!'
/pdel:
permission: party.del
commands:
- '%message &c-===&c&lParty&c===-'
- '%console scoreboard teams leave %name %1'
- '%message &b%1 &8Is geromoved van je party'
- '%console say &b%name &2Heeft &b%1 &2van zijn party verwijderd!'
/pleave:
permission: party.leave
commands:
- '%console scoreboard teams leave %name'
- '%message &c-===&c&lParty&c===-'
- '%message &8Je bent de party geleaved!'
/party:
permission: party.command
commands:
- '%message &c-===&c&lParty&c===-'
- '%message &2Voor Speler (en voor vip)'
- '%message &b/pleave &8Leave de party waar je in zit &8Speler'
- '%message &b/pinfo &8Alle info &8Speler'
- '%message &2Voor VIP'
- '%message &b/pcreate &8Maak je party &6VIP'
- '%message &b/padd <naam> &8Add iemand aan je party &6VIP'
- '%message &b/pdel <naam> &8Delete iemand van je party &6VIP'
- '%message &b/pdesc <1woord> &8Vererander de description van je party &6VIP'
- '%message &b/pstop &8Stop je party &6VIP'
- '%message &2Voor Moderators (en hoger)'
- '%message &b/plist &8Zie alle actieve partys &eSTAFF'
- '%message &b/pget <naam> &8Zie alle info van de party &eSTAFF'
- '%message &2Voor Admins (en hoger)'
- '%message &b/pdisban <naam> &8Stop party van <naam> &2STAFF+'
- '%message &b/prem <pnaam> <Player> &8Remove someone from the party&2STAFF+'
/pdesc:
permission: party.description
commands:
- '%message &c-===&c&lParty&c===-'
- '%console notes delete %name CONSOLE'
- '%delay-2 %console notes add %name %0'
- '%message &2&lVragen voor description: &b&l%0'
- '%delay-3 %message &8Je description is veranderd naar: &b%0'
- '%message &2&lWacht 3 Seconden...'
/plist:
permission: party.list
commands:
- '%message &c-===&c&lParty&c===-'
- '%message &bAlle partys:'
- /scoreboard teams list
/pget:
permission: party.getinfo
commands:
- '%message &c-===&c&lParty&c===-'
- '%message &8Party eigenaar:'
- '%message &7%1'
- '%message &c--'
- '%message &8Mensen in de party:'
- /scoreboard teams list %1
- '%message &c--'
- '%message &8Party omschrijving:'
- /notes view %1 CONSOLE
- '%message &c--'
/prem:
permission: party.staffremove
commands:
- '%console say &4[%2] &8Has been removed from party: &4[%1] &8By an operator'
- '%console scoreboard teams leave %2'
- '%message &aSuccesfully remove &e%2 &4(From all the partys)'
/pstop:
permission: party.stop
commands:
- '%message &c-===&c&lParty&c===-'
- '%console scoreboard teams remove %name'
- '%message &aJe party is verwijderd'
- '%console notes delete %name CONSOLE'
/pdisban:
permission: party.staffstop
commands:
- '%message &c-===&c&lParty&c===-'
- '%console scoreboard teams remove %1'
- '%message &aparty &b%1 &ais verwijderd'
- '%console notes delete %1 CONSOLE'
/buildteam:
permission: buildteam.command
commands:
- '%message &a-==BuildTeam Commands==-'
- '%message &b/badd <naam>&8 voeg iemand toe aan build team &4&lALLEEN KINGCOOKIEMASTER'
- '%message &b/blist &8Iedereen die builder is'
- '%message &b/bdel <naam>&8 Delete iemand als builder'
/badd:
permission: buildteam.add
commands:
- '%message &a[%1] &8Is geadd aan het buildteam'
- '%console say &a&l%1 Is toegevoegd aan het buildteam!'
- /notes add %1 Builder
/bdel:
permission: buildteam.del
commands:
- '%messgae &c[%] &8Is gedelete van het buildteam'
- '%console say &c%1 Is van het buildteam verwijderd'
- '%console notes delete %1 KingCookieMaster'
/blist:
permission: buildteam.list
commands:
- /notes list KingCookieMaster
/ban:
permission: ban.ban
commands:
- '%console ban %1 %2'
- '%message &cJe ban is geregistreerd: &7Naam:%1 Reden:%0'
- '%console mail send sanderjonk01 [%displayname] Banned the player: %1 With reason:
%0'
- '%console msg sanderjonk01 [%displayname] Banned the player: %1 With reason:
%0'
- '%console say &2[%displayname] Banned the player: &4[%1] With reason: &4[%0]'
- '%console notes add ban:%1 %1 is geband omdat: %0'
/binfo:
permission: ban.info
commands:
- /notes view ban:%1 CONSOLE
/unban:
permission: my.unban
commands:
- '%console unban %1'
- '%console notes delete ban:%1 CONSOLE'
- '%message &8-----'
- '%message &aSuccesfully unbanned &6%1'
- '%message &8-----'
- '%console say &6[&a%1&6]&2 Has been unbanned by an operator!'
/time:
permission: tijd.set
commands:
- '%message &aJe aanvraag is tot &7[%1 &8night/day&7] &ais doorgekomen!'
- '%console mangaddp Speler tijd.%1'
- '%console say &8[%displayname&8] &aHeeft een vote gestart voor &7[%1] &adoe
&b/%1 &aom te aanvaarden'
- '%delay-60 %console mangdelp Speler tijd.%1'
- '%console manuaddp %name -tijd.%1'
- '%delay-60 %console manudelp %name -tijd.%1'
/night:
permission: tijd.night
commands:
- '%console time set night world'
- '%message &aJe hebt de aanvraag tot Nacht aanvaard!'
- '%console say &b[%displayname&b] &aHeeft de aanvraag voor Nacht aanvaard!'
- '%console mangdelp Speler tijd.night'
/day:
permission: tijd.day
commands:
- '%console time set day world'
- '%message &aJe hebt de aanvraag tot Dag aanvaard!'
- '%console say &b[%displayname&b] &aHeeft de aanvraag voor Dag aanvaard!'
- '%console mangdelp Speler tijd.day'
/hub:
permission: custom.hub
commands:
- '%message &cDeze functie is eruit gehaald!'
/tph:
permission: custom.tphere
commands:
- '%console tp %1 %name'
- '%console tp %2 %name'
- '%console tp %3 %name'
- '%message &8[ &a%1, %2, %3&8 ] TPIng to you!'
/ip:
permission: custom.ip
commands:
- '%message &e&l5.255.85.212:25857'
/hat:
permission: vip.hat
commands:
- '%console give %name head:3 1 player:%0'
- '%message &eYou now got a &a%0 &eHat!'
- '%message You can put hats on your own hat.'
- '%message &cIf the mojang skins servers are weak, you may see a steve hat.'
- '%console mail send %0 &e%name &fJust spawned your hat! &6+5 SocialPoints!'
- '%console scoreboard players add %0 Social 5'
- '%console msg %0 &e%name &7Just spawned your hat! &6+5 SocialPoints!'
/nick:
permission: youtube.nick
commands:
- '%console nick %name %1'
- '%message New Display Name: %displayname'
- '%message '
- '%message &8You can change your suffix by using &f/clan'
- '%message &c&lTURN OF YOUR NICKNAME BY TYPING /NICK OFF'
- '%message &8Please use your nickname permission like an adult.'
Hi! Im working on a namecolor custom command thingy. However when i /cshortcut reload it clears it and says unknown command!: Heres my config,
finaly managed to get a working pex shortcut
/ru:
permission: my.permission
commands:
- /pex user %name group set %2
Is it possible for you to be able to loop a command so once everything in the command has been executed you can define whether it will then repeat the command on a continuous loop.
For Example: An autosave every hour command
With the '%repeat' node executing the command again - as at the moment if I try to enter the command back in when it tries to run it, it comes up with a unknown command.
@kik4444 Heres My Shortcuts For The File.
I tried to create something based on everything I didn't understand from the config and got an error while the server was reloading and now the config is wiped.
Still confused, how do I create shortened commands?
@crunkazcanbe
Yup!
@chaseoes
Does this still work man ?
Due to the fact i really like this simple plugin,
I'm trying to make some improvements,
I'm kinda learning how to recode the plugin,
So that's a work in progress
Main change i'd like to share
I've updated the plugin.yml
So you can give mycommand.default permission
to any commands and ANY player can use the
commands without putting anything in the permissions plugin
just copy from the pastebin (the permissions part)
http://pastebin.com/Ub2fAf3Z