• Es freut uns dass du in unser Minecraft Forum gefunden hast. Hier kannst du mit über 130.000 Minecraft Fans über Minecraft diskutieren, Fragen stellen und anderen helfen. In diesem Minecraft Forum kannst du auch nach Teammitgliedern, Administratoren, Moderatoren , Supporter oder Sponsoren suchen. Gerne kannst du im Offtopic Bereich unseres Minecraft Forums auch über nicht Minecraft spezifische Themen reden. Wir hoffen dir gefällt es in unserem Minecraft Forum!

MyCommand Problem

Status
Für weitere Antworten geschlossen.
D

deleted21197

Guest
Hallo zusammen,

ich habe mir das Plugin MyCommand komplett auf einem lokalen Server eingerichtet und getestet.
Funktioniert alles, auch mit den Plugins meines normalen Servers.
Nun habe ich einfach den Plugin Ordner in den plugins Ordner meines Minecraft GameServers getan und den Server neugestartet.
Wenn ich nun einen Befehl ausführen möchte, bekomme ich diese Fehlermeldung im log:
01:26:11 [INFO] hacky998 issued server command: /vote... 21 more
at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53)
at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
at org.yaml.snakeyaml.reader.StreamReader.(StreamReader.java:50)
at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:70)
in "", position 1043
Caused by: unacceptable character '?' (0xFFFD) special characters are not allowed
at net.minecraft.server.ThreadServerApplication.run(SourceFile:856)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493)
at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222)
at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:595)
at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.ServerConnection.b(SourceFile:39)
at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:113)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:290)
at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:858)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:903)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:985)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:502)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:186)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
at me.mri.mycommand.mycommandCommandExecutor.onCommand(mycommandCommandExecutor.java:267)
at me.mri.mycommand.mycommandCommandExecutor.reloadedit(mycommandCommandExecutor.java:58)
at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:175)
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:105)
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:138)
at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55)
in "", position 1043
org.bukkit.configuration.InvalidConfigurationException: unacceptable character '?' (0xFFFD) special characters are not allowed
01:26:09 [SEVERE] Cannot load plugins/MyCommand/commands.yml
Ich habe schon viel gesucht, aber noch keine Lösung gefunden :(

MfG hacky998
 
D

deleted21197

Guest
Hier meine Command Datei:
# MyCommand v3.6 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 , runcommand-random
# - 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: /vote
type: text
text:
- §5----------------------§6§lVOTEN§5---------------------
- 1. Klick auf diesen Link §4http://vote.vzfuncraft.de
- 2. Gib den dargestellten Code und bei Name §2$player§f ein.
- 3. Klick auf bewerten.
- 4. Nun musst Du ca. 30 Sekunden warten und erhaelst
- $s$s$sdann Deine Belohung!
- §5-------------------------------------------------
'2':
command: /faq
type: text
text:
- §5-----------------------------------------------------
- §6§lFAQ Bereiche
- -$s§4Allgemeine Befehle §2-§f /faq allgemein
- -$s§4Home Befehle §2-§f /faq home
- -$s§4Kisten, Tueren usw. schuetzen §2-§f /faq protect
- -$s§4Geld, Handel usw. §2-§f /faq money
- -$s§4Regionen/Grundstuecke §2-§f /faq region
- §5-----------------------------------------------------
'3':
command: /faq allgemein
type: text
text:
- §5-----------------------------------------------------
- §6Allgemeine Befehle
- -$s§4Teleporiert Dich zum Spawn §2-&f /spawn
- -$s§4Listet auf, wer online ist §2-&f /list
- -$s§4Spieler anfluestern §2-§f /msg [SPIELERNAME] [NACHRICHT]
- -$s§4Schnell aufs Fluestern antworten §2-&f /r [NACHRICHT]
- -$s§4Spieler private Nachricht senden §2-§f
- $s$s$s/mail send [SPIELERNAME] [NACHRICHT]
- -$s§4Zeigt, ob Du noch mit unserem Server verbunden bist §2-§f /ping
- §5-----------------------------------------------------
'4':
command: /faq home
type: text
text:
- §5-----------------------------------------------------
- §6Home Befehle
- -$s§4Setzt den Homepunkt an dem Ort, an dem Du gerade stehst §2-&f
- $s$s$s/sethome
- -$s§4Teleportiert Dich zu Deinem Homepunkt §2-&f /home
- -$s§4Setzt einen zusaetzlichen Homepunkt §2-&f /sethome [HOMENAME]
- -$s§4Teleportiert Dich zu einem Deiner anderen Homepunkte §2-&f
- $s$s$s/home [HOMENAME]
- §5-----------------------------------------------------
'5':
command: /faq protect
type: text
text:
- §5-----------------------------------------------------
- §6Kisten, Tueren usw. schuetzen
- -$s§4Listet Dir alle verfuegbaren LWC Befehle auf §2-&f /lwc
- -$s§4Zeigt Dir Infos zu einer Protection an §2-&f /cinfo
- -$s§4Jeder kann auf diese Protection zugreifen §2-&f /cpublic
- -$s§4Erzeugt eine private Protection §2-&f /cprivate
- -$s§4Entfernt eine Protection §2-&f /cremove
- -$s§4Erzeugt eine Protection mit Passwort §2-&f
- $s$s$s/cpassword [PASSOWORT]
- -$s§4Um eine Passwortprotection zu oeffnen §2-&f
- $s$s$s/cunlock [Passwort]
- -$s§4Fuege der Kiste/Tuer einen weiteren Benutzer hinzu §2-&f
- $s$s$s/cmodify [SPIELERNAME]
- -$s§4Entziehe dem Benutzer die Rechte der Kiste/Tuer §2-&f
- $s$s$s/cmodify -[SPIELERNAME]
- §5-----------------------------------------------------
'6':
command: /faq money
type: text
text:
- §5-----------------------------------------------------
- §6Geld, Handel, Tausche usw.
- -$s§4Zeigt Dir alle Befehle an, die zu Verfuegung stehen §2-&f
- $s$s$s/money help
- -$s§4Zeigt Dir an, wie viel Geld ihr besitzt §2-&f /money
- -$s§4Ueberweist den gewaehlten Betrag an den Spieler §2-&f
- $s$s$s/money pay [Spielername] [Betrag]
- §5-----------------------------------------------------
'7':
command: /faq region
type: text
text:
- §5-----------------------------------------------------
- §6Regionen/Grundstuecke
- -$s§4Gib dem Spieler die Baugenehmigung auf Deinem
- $s$s$s§4Grundstueck §2-&f
- $s$s$s/region addmember [Regionname] [Spielername]
- -$s§4Entferne die Berechtigung von dem Spieler auf Deinem
- $s$s$s§4Grundstueck zu bauen §2-&f
- $s$s$s/region removemember [Regionname] [Spielername]
- §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: /mycmd-random
type: runcommand-random
text:
- $red Text of command $black15
runcmd:
- /say 1 $multiargs
- /say 2 $multiargs
- /say 3 $multiargs
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
cost: 0
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
 
G

Greey3331

Guest
Ich, und der YAML Parser, sehen darin auch keinen Fehler ._.
Aber bei mir geht MyCommand auf meinen richtigen Server (Auf dem Lokalen läufts!?) auch nicht, egal wie die Config aussieht (Sogar bei der Default Config zeigt es einen Error -.-)
 
D

deleted21197

Guest
Habe nun selbst die Lösung gefunden :)
Bei den Farbcodes habe ich immer, z.B. bei dunkelrot das angegeben: §4
Aber das Zeichen "§" wird gar nicht akzeptiert, und deswegen habe ich immer eine Fehlermeldung bekommen.
Ich brachte den Farbcode nur ändern, in diesem Fall bei dunkelrot so: $darkred

MfG hacky998
 
Status
Für weitere Antworten geschlossen.
Oben