G
Greey3331
Guest
Ich möchte das Plugin "MyCommand" verwenden, ich brauche noch Befehle wie /vote oder /spenden.
Leider geht das so noch nicht richtig, weil er mir immer die Default messages.yml erstellt.
In der Konsole kommt diese Meldung:
Meine Messages.yml:
Die Default messages.yml:
Nur weiß ich nicht, in welcher messages.yml das Problem liegt.
Achso, ich nutze Bukkit 1.3.2-R2.0 und MyCommand v3.5
Kann jemand helfen?
MfG Greey3331
Leider geht das so noch nicht richtig, weil er mir immer die Default messages.yml erstellt.
In der Konsole kommt diese Meldung:
Code:
2012-10-23 16:36:31 [INFO] [MyCommand] Enabling MyCommand v3.52012-10-23 16:36:31 [INFO] [MyCommand] Hooked MyCommand Vault
2012-10-23 16:36:31 [INFO] [MyCommand] Spout not detected.Disabling spout feature.
2012-10-23 16:36:32 [SEVERE] Cannot load plugins/MyCommand/commands.yml
org.bukkit.configuration.InvalidConfigurationException: unacceptable character '�' (0xFFFD) special characters are not allowed
in "<string>", position 79
at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55)
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:138)
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:105)
at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:175)
at me.mri.mycommand.mycommand.commandsconfig(mycommand.java:215)
at me.mri.mycommand.mycommand.onEnable(mycommand.java:104)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:374)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:270)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:252)
at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:298)
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:277)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:227)
at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
Caused by: unacceptable character '�' (0xFFFD) special characters are not allowed
in "<string>", position 79
at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:70)
at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:50)
at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53)
... 16 more
2012-10-23 16:36:32 [SEVERE] Cannot load configuration from stream
org.bukkit.configuration.InvalidConfigurationException: unacceptable character '�' (0xFFFD) special characters are not allowed
in "<string>", position 364
at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55)
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:138)
at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:202)
at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:121)
at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:111)
at me.mri.mycommand.mycommand.SetupConfig(mycommand.java:307)
at me.mri.mycommand.mycommand.onEnable(mycommand.java:107)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:374)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:270)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:252)
at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:298)
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:277)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:227)
at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
Caused by: unacceptable character '�' (0xFFFD) special characters are not allowed
in "<string>", position 364
at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:70)
at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:50)
at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53)
... 17 more
2012-10-23 16:36:32 [INFO] [MyCommand] Custom Commands : 20
2012-10-23 16:36:33 [INFO] [MyCommand] Config Ready
2012-10-23 16:36:33 [INFO] [MyCommand] v3.5 Active. by MRI a.k.a Ivanpro
Meine Messages.yml:
Code:
options:
commandsnumber: 3
'1':
command: /vote
type: text
text:
- §l&1Danke &4§o§player§r&1§l, das du voten willst!
- &1Leider ist diese Funktion noch nicht fertig!
- &1Tut uns wirklich Leid!
runcmd:
- /say -.-
cost: 0
delaytimer: 5
'2':
command: /spenden
type: text
text:
- §l&1Danke &4§o§player§r&1§l, das du spenden willst!
- &1Leider ist diese Funktion noch nicht fertig!
- &1Tut uns wirklich Leid!
runcmd:
- /say -.-
cost: 0
delaytimer: 5
'3':
command: /countdown
type: runcommand
text:
- §l&1Danke &4§o§player§r&1§l, das du Countdown startest!
runcmd:
- $delay$/say 10
- $delay$/say 9
- $delay$/say 8
- $delay$/say 7
- $delay$/say 6
- $delay$/say 5
- $delay$/say 4
- $delay$/say 3
- $delay$/say 2
- $delay$/say 1
- $delay$/say 0
- $delay$/say Los gehts!!!
cost: 0
delaytimer: 1
Die Default messages.yml:
Code:
# MyCommand v3.5 Commands Config File# - commandsnumber (default 20) it's number of command you want make
# - Don't forget the '/' on runcmd line , example command: /myhelp
# - type accept = text , runcommand , broadcast-text , runcommand-text , runcommand-broadcast-text , perm-broadcast-text --
# - , addpermission , addtimer , runconsole , runcommand-perm-broadcast-text
# - Additional type accept if you use Spoutplugin = spout-text .
# - runcommand type example -> If command: /l and runcmd: /list,when you type /l mycommand execute /list
# - runcmd support custom argument in game.($arg1,$arg2,$arg3,$arg4,$arg5,$multiargs) Example - runcmd : /time $arg1
# - 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
# - http://dev.bukkit.org/server-mods/mycommand/pages/configuration-and-example/
options:
commandsnumber: 20
'1':
command: /mycmd-sampletext
type: text
text:
- $red Hello $darkgreen$player!
runcmd:
- /sample
cost: 0
delaytimer: 5
'2':
command: /mycmd-dice
type: text
text:
- $red You got $darkgreen$rnd6 !
runcmd:
- /sample
cost: 0
delaytimer: 5
'3':
command: /mycmd-runcommand
type: runcommand
text:
- $red Text of command $black3
runcmd:
- /list
cost: 0
delaytimer: 5
'4':
command: /mycmd-args
type: runcommand
text:
- $red Text of command $black4
runcmd:
- /time $arg1 $arg2
cost: 0
delaytimer: 5
'5':
command: /mycmd-runcmdtimer
type: runcommand
text:
- $red Text of command $black5
runcmd:
- $delay$/say 3..
- $delay$/say 2..
- $delay$/say 1..
cost: 0
delaytimer: 1
'6':
command: /mycmd-broadcast
type: broadcast-text
text:
- $blue MyCommand Broadcast Test
runcmd:
- /sample
cost: 0
delaytimer: 5
'7':
command: /mycmd-spoutsample
type: spout-text
text:
- $darkgreen -Spout Text-
- $red MyCommand!
runcmd:
- /sample
cost: 0
delaytimer: 5
'8':
command: /mycmd-runconsole
type: runconsole
text:
- $red Text of command $black8
runcmd:
- /say This /say it's performed by console.
cost: 0
delaytimer: 5
'9':
command: /mycmd-addtimer
type: text
text:
- $gold Put your command over /mycmd-addtimer
- '$gold And change type : from text to addtimer'
runcmd:
- /sample
cost: 0
delaytimer: 5
'10':
command: /mycmd-addpermission
type: text
text:
- $gold Put your command over /mycmd-addpermission
- '$gold And change type : from text to addpermission'
runcmd:
- /sample
cost: 0
delaytimer: 5
'11':
command: /mycmd-textargs
type: text
text:
- 'Player Name : $player'
- 'World : $world'
- 'Health : $health Food : $food'
- 'Exp : $exp Level : $level'
- 'Gamemode : $gamemode'
- 'LastDamage : $lastdamage'
runcmd:
- /sample
cost: 0
delaytimer: 5
'12':
command: /mycmd-online
type: text
text:
- $red There are $online players online.
runcmd:
- /sample
cost: 0
delaytimer: 5
'13':
command: /mycmd-clearchat
type: broadcast-text
text:
- ''
- ''
- ''
- ''
- ''
- ''
- ''
- ''
- ''
- ''
runcmd:
- /sample
cost: 0
delaytimer: 5
'14':
command: /mycmd-shortcut
type: runcommand
text:
- $red Text of command $black14
runcmd:
- /say $multiargs
cost: 0
delaytimer: 5
'15':
command: /mycmdsample15
type: text
text:
- $red Text of command $black15
runcmd:
- /sample
cost: 0
delaytimer: 5
'16':
command: /mycmdsample16
type: text
text:
- $red Text of command $black16
runcmd:
- /sample
cost: 0
delaytimer: 5
'17':
command: /mycmdsample17
type: text
text:
- $red Text of command $black17
runcmd:
- /sample
cost: 0
delaytimer: 5
'18':
command: /mycmdsample18
type: text
text:
- $red Text of command $black18
runcmd:
- /sample
delaytimer: 5
'19':
command: /mycmdsample19
type: text
text:
- $red Text of command $black19
runcmd:
- /sample
cost: 0
delaytimer: 5
'20':
command: /mycmdsample20
type: text
text:
- $red Text of command $black20
runcmd:
- /sample
cost: 0
delaytimer: 5
Nur weiß ich nicht, in welcher messages.yml das Problem liegt.
Achso, ich nutze Bukkit 1.3.2-R2.0 und MyCommand v3.5
Kann jemand helfen?
MfG Greey3331