View difference between Paste ID: 70GS3cZ7 and cuKzaGWu
SHOW: | | - or go back to the newest paste.
1
#-----------------------------------------------------------------------------------------------------------#
2
#                             MyCommand Commands config file (last update v5.5.0)                           #
3
#                                                                                                           #
4
#  BukkitDev Help page : https://dev.bukkit.org/projects/mycommand/pages/getstarted                         #
5
#                                                                                                           #
6
#   How to make a command : (See an example command below)                                                  #
7
#       For first, put your command name on first line                                                      #
8
#       Now put your command_line name after the "command:" line. Don't forget the '/' before your command. #
9
#       So, now select your command type from a predefined list putting it after "type" line                #
10
#   COMMAND TYPE LIST :                                                                                     #
11
#       TEXT , ALIAS , RUN_COMMAND , BROADCAST_TEXT , RUN_COMMAND_TEXT , RUN_COMMAND_BROADCAST_TEXT         #
12
#       ADD_PERMISSION , WARMUP , COOLDOWN , RUN_CONSOLE , RUN_CONSOLE_RANDOM , SPOUT_TEXT                  #
13
#       RUN_COMMAND_RANDOM , RUN_ASOPERATOR , ICON_MENU , SCOREBOARD , BUNGEE_TP , SPOUT_NOTIFICATION       #
14
#       BAR_API_TEXT , BAR_API_BROADCAST_TEXT , CALL_URL, TITLE, BROADCAST_TITLE, ACTION_BAR                #
15
#                                                                                                           #
16
#   If your command is "TEXT" type, you can put multiple line of text below this parameter                  #
17
#   You can do the same thing with the "RUNCOMMAND" type, but instead of text, puts commands in this list   #
18
#   For delayed command(s) add $delay$ before the command in runcmd Example : - $delay$/list                #
19
#   Set delay time with delaytimer: 5 (5 = seconds) |                                                       #
20
#   If you are using the Vault plugin, you can put the "cost: 123.0" with this line.                        #
21
#   You can customize your permission node by placing "permission-node:" field in a command                 #
22
#   Also,you can change the permission error message with "permission-error:"                               #
23
#   Custom error-message for invalid args ,put "error-message:" line in a command.                          #
24
#   You can use itemcost : 'ID:AMOUNT' for set a cost with items.                                           #
25
#   Register REAL commands putting "register: true" below the command.                                      #
26
#   With register commands you can use the "tab_completer: - Hi - Hello!"                                   #
27
#   For Scripts and more features, find more on the bukkitdev page                                          #
28
#-----------------------------------------------------------------------------------------------------------#
29
gamemode_alias:
30
  command: /gm
31
  type: ALIAS
32
  alias: /gamemode
33
  permission-required: true
34
shortcut_with_arguments:
35
broadcast_example:
36
  command: /bc
37
  type: BROADCAST_TEXT
38
  text:
39
  - '&cInfo &8» &b$multiargs'
40
  required_args: 1
41
clear_chat:
42
  command: /cc
43
  type: BROADCAST_TEXT
44
  text:
45
  - '%Repeat%100% '
46
  - '&cInfo &8» &eDer Chat wurde von &b$player &egeleert.'
47
  permission-required: false
48
  permission-node: system.cc
49
dailybonus:
50
  command: /dailybonus
51
  type: RUN_COMMAND
52
  runcmd:
53
  - "$Script$%if%$todaydate!=$PlayerData%DailyBonus%"
54
  - "$text$&bTäglicheBelohnung &8» &eHallo $player, hier ist deine TäglicheBelohnung."
55
  - "$text$&bTäglicheBelohnung &8» &eDu hast deine TäglicheBelohnung erhalten."
56
  - "%PlayerOptions%addItem: DIAMOND:2"
57
  - "$Script$%PlayerData%DailyBonus=$todaydate"
58
  - "$text$&bTäglicheBelohnung &8» &eKomme morgen wieder vorbei!"
59
  - "$Script$%else%"
60
  - "$text$&bTäglicheBelohnung &8 &e Hole dir deine TäglicheBelohnung morgen wieder ab!"
61
  permission-required: false
62
  permission-node: system.dailybonus
63
AFK:
64
  command: /afk
65
  permission-required: true
66
  required_args: 1
67
  permission-node: system.afk
68
  error-message: '&cServer &8┃ &7Benutze&8 × &c/afk &7[&cGrund&7]. &7Bitte schreibe nur ein Wort als Grund!'
69
  type: TEXT
70
  text:
71
  - "&cServer &8┃ &7Der Spieler &c$player &7ist nun &cAFK&7. &cGrund &8× &7$arg1"
72
MSG:
73
 command: /msg
74
 permission-required: false
75
 required_args: 2
76-
 error-message: &cMSG &8┃ &7Nutze bitte &7× &c/Msg &7[&cPlayer&7] &7[&cNachricht&7] 
76+
 error-message: '&cMSG &8┃ &7Nutze bitte &7× &c/Msg &7[&cPlayer&7] &7[&cNachricht&7]'
77
 permission-node: system.msg
78
 type: RUN_COMMAND
79
 runcmd:
80
 - /msg $arg1 $arg2