Zdarec,
neví někdo proč mi nejde příkaz v MyCommand?
COnfig:
Kód: Vybrat vše
#-----------------------------------------------------------------------------------------------------------#
# MyCommand Commands config file (last update v5.1.2) #
# #
# BukkitDev Help page : http://dev.bukkit.org/server-mods/mycommand/pages/configuration-and-example #
# #
# How to make a command : (See an example command below) #
# For first,put you command number on first line #
# Now put your command name on "command:" line. Don't forget the '/' before you command. #
# So,select your command type from a predefined list putting it after "type" line #
# COMMAND TYPE LIST : #
# TEXT , ALIAS , RUN_COMMAND , BROADCAST_TEXT , RUN_COMMAND_TEXT , RUN_COMMAND_BROADCAST_TEXT #
# ADD_PERMISSION , WARMUP , COOLDOWN , RUN_CONSOLE , RUNCOMMAND_PERM_BROADCAST_TEXT , SPOUT_TEXT #
# RUN_COMMAND_RANDOM , RUN_ASOPERATOR , ICON_MENU , SCOREBOARD , BUNGEE_TP , SPOUT_NOTIFICATION #
# BAR_API_TEXT , BAR_API_BROADCAST_TEXT , RUN_CONSOLE_RANDOM , CALL_URL #
# #
# Now,if you command it's "TEXT" type,you can put multiple line of text below text list #
# Same thing,if your command it's "RUNCOMMAND" type,but put you commands below runcmd list. #
# For Delayed command add $delay$ before the command in runcmd Example : - $delay$/list #
# Set delay time with delaytimer: 5 (5 = seconds) | Use the dot . for decimal cost Example = cost : 5.5 #
# You can customize your permission node by placing "permission-node:" field in a command #
# Also,you can change the permission error message with "permission-error:" #
# Custom error-message for invalid args ,put "error-message:" line in a command. #
# You can use itemcost : 'ID:AMOUNT' for set a cost with items. #
# Register REAL commands putting "register: true" below the command. #
# With register commands you can use the "tab_completer: - Hi - Hello!" #
#-----------------------------------------------------------------------------------------------------------#
'kittools':
command: /kittools
type: RUN_COMMAND
runcmd:
- /give $arg1 269 1
- /give $arg1 270 1
- /give $arg1 271 1Log po reloadu MyCmd:
Kód: Vybrat vše
> [21:45:09 INFO]: Kesuordep issued server command: /mycmd-reload commands
> [21:45:09 ERROR]: Cannot load plugins/MyCommand/commands.yml
org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping
in 'string', line 27, column 1:
'kittools':
^
expected <block end>, but found BlockEntry
in 'string', line 31, column 1:
- /give $arg1 269 1
^
at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:57) ~[minecraft_server.jar:git-Spigot-1543]
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:226) ~[minecraft_server.jar:git-Spigot-1543]
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:169) ~[minecraft_server.jar:git-Spigot-1543]
at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:180) [minecraft_server.jar:git-Spigot-1543]
at it.mri.mycommand.Main.ReloadConfigFile(Main.java:449) yCommand.jar:?]
at it.mri.mycommand.commands.CmdReload.onCommand(CmdReload.java:38) yCommand.jar:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [minecraft_server.jar:git-Spigot-1543]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:181) [minecraft_server.jar:git-Spigot-1543]
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:767) [minecraft_server.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.PlayerConnection.handleCommand(PlayerConnection.java:1015) [minecraft_server.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:845) [minecraft_server.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.PacketPlayInChat.a(PacketPlayInChat.java:28) [minecraft_server.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.PacketPlayInChat.handle(PacketPlayInChat.java:65) [minecraft_server.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:184) [minecraft_server.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.ServerConnection.c(ServerConnection.java:81) [minecraft_server.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:731) [minecraft_server.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:284) [minecraft_server.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:584) [minecraft_server.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:490) [minecraft_server.jar:git-Spigot-1543]
at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [minecraft_server.jar:git-Spigot-1543]