BetterAlias/aliases.yml

94 lines
2.4 KiB
YAML
Raw Permalink Normal View History

2015-02-08 15:08:01 +01:00
# 'dumb' parameter, will just use what you put in
2013-02-06 19:35:14 +01:00
banhammer:
1: /ban !1
2015-02-08 15:08:01 +01:00
# name parameter is replaced with the command users name
gmon:
2013-02-07 01:52:38 +01:00
0: /gamemode creative !name
1: /gamemode creative !1
2015-02-08 15:08:01 +01:00
gmoff:
2013-02-07 01:52:38 +01:00
0: /gamemode survival !name
1: /gamemode survival !1
2015-02-08 15:08:01 +01:00
# call command which needs permission with default player
day:
0: player_as_op /time set 0
2013-02-06 19:35:14 +01:00
# putting a P after the parameter specifies this is a player, and BA should try to guess which player
# useful for things like "/to e0n" instead of "/to Ne0nx3r0"
# This will ONLY look for players that are online
to:
1: /tp !name !1p
2: /tp !1p !2p
bring:
1: /tp !1p !name
2015-02-08 15:08:01 +01:00
2013-02-06 19:35:14 +01:00
# multiple command example
2013-07-28 23:57:48 +02:00
# note spaces in an alias go within quotes
2015-02-08 15:08:01 +01:00
"tp then kick":
2013-02-06 19:35:14 +01:00
1:
- /tp !1p !name
- /kick !1p
# replaced with the item name in the player's hand
2015-02-08 15:08:01 +01:00
hand:
2013-02-06 19:35:14 +01:00
0: I have a !handItemName in my hand right now!
2015-02-08 15:08:01 +01:00
2013-02-06 19:35:14 +01:00
# replace with the item ID in the player's hand
handid:
0: /give !name !handItemID
2013-04-10 02:49:06 +02:00
# Toggle the current player's game mode from survival to creative
gm:
0: /gamemode !oppositeGameMode !name
2013-02-26 20:37:06 +01:00
# Send everything with a command
sendAll:
"*": /say !*
2015-02-08 15:08:01 +01:00
2013-02-26 20:37:06 +01:00
# Send everything with a command, but only on certain parameter lengths
sendAll:
3: /say !*
2013-02-06 19:35:14 +01:00
# Color example
# ----------------
# Available colors:
# BLACK, DARK_BLUE, DARK_GREEN, DARK_AQUA, DARK_RED, DARK_PURPLE, GOLD, GRAY,
# DARK_GRAY, BLUE, GREEN, AQUA, RED, LIGHT_PURPLE, YELLOW, WHITE, MAGIC, BOLD,
# STRIKETHROUGH, UNDERLINE, ITALIC, RESET
#
# (Also shows how to use the reply modifier to only reply to the player)
redText:
0: reply Look at my &REDcolored &DARK_GREENtext!
2015-02-08 15:08:01 +01:00
# User must have betteralias.staff permission or be the console.
staff:
permission: staff
0:
- /seen Ne0nx3r0
- /seen someOtherStaffMember
- /seen someThirdStaffMember
2015-02-08 15:08:01 +01:00
2013-02-06 19:35:14 +01:00
# Console example
# If this seems dangerous, that's because it is!
#
makeOp:
2013-02-06 19:35:14 +01:00
# Required permission will be betteralias.your.node
2015-02-08 15:08:01 +01:00
permission: your.node
# Must be makeOp, not Makeup, makeop, etc.
2015-02-08 15:08:01 +01:00
caseSensitive: true
2013-02-06 19:35:14 +01:00
# Quotes are required because 0 uses a colon (:)
0: "reply Usage: /makeOp <username>"
2013-02-06 19:35:14 +01:00
1:
- console /say !1 has been opped!
- console /op !1
- /me has opped !1
2015-02-08 15:08:01 +01:00
2013-04-10 02:49:06 +02:00
# Wait example
wait:
# Quotes are required because 0 uses a colon (:)
0:
2013-04-10 02:55:41 +02:00
- wait 100 console /me thinks this message will come last!
2013-04-10 02:49:06 +02:00
- wait 80 /me thinks this message will come third
- wait 40 reply this came second!
- console /say this message came first!