Stránka 1 z 2

MyCommand

Napsal: 23 kvě 2012, 17:20
od Welton123
PODPIS


Ahoj, dnes jsem na server dal tento plugin, upravil sjem si v nem prikazy ale i kdyz server vypnu, nahraju upraveny config a spustim tak se config prepise ://

CONFIG:

Kód: Vybrat vše

# MyCommand v.2.6 Config File
# - Commandsnumber (default 20) it's number of command you want make- On Command line use Slash like = command: /myhelp
# - type accept = text , runcommand , broadcast-text , runcommand-text , runcommand-broadcast-text , perm-broadcast-text , addpermission , addtimer , runconsole.
# - Additional type accept if you use Spoutplugin= spout-text .
# - If type: runcommand -> command: /li launch runcmd: /list
# - runcmd support custom argument in game.($arg1,$arg2,$arg3,$arg4,$arg5,$multiargs) Set runcmd : /time $arg1
# - For Delayed command add $delay$ before the command in runcmd Example : - $delay$/list
# - Set delay time with delaytimer: 5 (5 = seconds)
commandsnumber: 3
disablepermission: false
disabledebugmessage: false
'1':
  command: /odebrani
  type: runcommand
  text:
  - §4 Text of command §a4
  runcmd:
  - /pex user $arg1 group set Hrac
  - /broadcast Hraci $arg1 bylo odebrano $arg2 duvod:$arg3 !
  delaytimer: 5
'2':
  command: /restart
  type: runcommand
  text:
  - §4 Text of command §a4
  runcmd:
  - /say Restart za
  - $delay$/say 5
  - $delay$/say 4
  - $delay$/say 3
  - $delay$/say 2
  - $delay$/say 1
  - /save-all
  - /kickall restart
  - /stop
  delaytimer: 1
'3':
  command: /autoodebrani
  type: runcommand
  text:
  - §4 Text of command §a4
  runcmd:
  - /pex user $arg1 group remove $arg2
  - /broadcast Hraci $arg1 bylo odebrano $arg2 duvod:$arg3 !
  delaytimer: 5

Re: MyCommand

Napsal: 23 kvě 2012, 18:26
od siOnzee
myslel jsem že si to už vyřešil :o

Re: MyCommand

Napsal: 23 kvě 2012, 18:31
od nejento
Když spuštíš s novým configem, tak sem dej ten server.log.

Re: MyCommand

Napsal: 23 kvě 2012, 18:47
od Welton123
sionzee na testovacim to jde


V logu sjem nasel toto myslim, ze je tam nejaky divny znak ale v configu ho nevidim ://

LOG:

Kód: Vybrat vše

2012-05-23 18:44:53 [INFO] [MyCommand] Enabling MyCommand v2.6
2012-05-23 18:44:53 [INFO] [MyCommand] Hooked MyCommand Vault
2012-05-23 18:44:53 [INFO] [MyCommand] Spout not detected.Disabling spout feature.
2012-05-23 18:44:53 [SEVERE] Cannot load plugins/MyCommand/config.yml
org.bukkit.configuration.InvalidConfigurationException: unacceptable character '�' (0xFFFD) special characters are not allowed
in "<string>", position 818
   at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:54)
   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:174)
   at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:117)
   at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:111)
   at me.mri.mycommand.mycommand.SetupConfig(mycommand.java:129)
   at me.mri.mycommand.mycommand.onEnable(mycommand.java:50)
   at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
   at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
   at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
   at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:256)
   at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:238)
   at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:372)
   at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:359)
   at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:188)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:423)
   at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: unacceptable character '�' (0xFFFD) special characters are not allowed
in "<string>", position 818
   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:52)
   ... 17 more
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line commandsnumber : 20
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line disablepermission : false
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line disabledebugmessage : false
2012-05-23 18:44:53 [INFO] [MyCommand] Commands to Load : 20
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line command 1
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line type 1
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line text 1
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line runcmd 1
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line delaytimer 1
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line command 2
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line type 2
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line text 2
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line runcmd 2
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line delaytimer 2
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line command 3
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line type 3
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line text 3
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line runcmd 3
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line delaytimer 3
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line command 4
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line type 4
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line text 4
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line runcmd 4
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line delaytimer 4
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line command 5
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line type 5
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line text 5
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line runcmd 5
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line delaytimer 5
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line command 6
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line type 6
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line text 6
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line runcmd 6
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line delaytimer 6
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line command 7
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line type 7
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line text 7
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line runcmd 7
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line delaytimer 7
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line command 8
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line type 8
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line text 8
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line runcmd 8
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line delaytimer 8
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line command 9
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line type 9
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line text 9
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line runcmd 9
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line delaytimer 9
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line command 10
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line type 10
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line text 10
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line runcmd 10
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line delaytimer 10
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line command 11
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line type 11
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line text 11
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line runcmd 11
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line delaytimer 11
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line command 12
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line type 12
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line text 12
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line runcmd 12
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line delaytimer 12
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line command 13
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line type 13
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line text 13
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line runcmd 13
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line delaytimer 13
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line command 14
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line type 14
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line text 14
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line runcmd 14
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line delaytimer 14
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line command 15
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line type 15
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line text 15
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line runcmd 15
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line delaytimer 15
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line command 16
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line type 16
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line text 16
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line runcmd 16
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line delaytimer 16
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line command 17
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line type 17
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line text 17
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line runcmd 17
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line delaytimer 17
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line command 18
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line type 18
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line text 18
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line runcmd 18
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line delaytimer 18
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line command 19
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line type 19
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line text 19
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line runcmd 19
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line delaytimer 19
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line command 20
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line type 20
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line text 20
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line runcmd 20
2012-05-23 18:44:53 [INFO] [MyCommand] Created Config line delaytimer 20
2012-05-23 18:44:53 [INFO] [MyCommand] Config Load : Successful!
2012-05-23 18:44:53 [INFO] [MyCommand] v.2.6 Active. by MRI a.k.a Ivanpro

Re: MyCommand

Napsal: 23 kvě 2012, 19:34
od MrMinas
mam napad ale nevim jestli bude uzitecny otevri ten mycommands ve winraru tak tam budes mit nekde urcite ten configt (nebo co to chces upravit) tak to uprav jak to chces mit a uprav to i ve slozce

Re: MyCommand

Napsal: 23 kvě 2012, 21:24
od Welton123
Bohuzel v MyCommand.jar je jen soubor plugin.yml a slotka META-INF a ME

Re: MyCommand

Napsal: 24 kvě 2012, 05:34
od Shaggy84675
Podle server.log tam někde dáváš špatné znaky a tím pádem se config vygeneruje znova. Pokud plugin něco z configu nevyčte, nebo se mu nelíbí, tak ho vždycky udělá znova. Ale nevím přesně kde, v server.logu je i pozice kde to máš špatně ale jak říkám nechce se mi to počítat je to na nějaké pozici 818. Myslím že po písmenech :D

Re: MyCommand

Napsal: 24 kvě 2012, 08:08
od Welton123
Díky :D, to bude počítání ://

Re: MyCommand

Napsal: 24 kvě 2012, 08:12
od Sejsel
Zkus všechno uzavřít do uvozovek. Řekl bych, že za to může nějaký vykřičník nebo tak něco

Re: MyCommand

Napsal: 24 kvě 2012, 08:19
od Welton123
Smazal jsem vykřičníky, zkousel jsem to cele přepsat ale v LOGu to zase pise chybu na pozici 817

Log:

Kód: Vybrat vše

Caused by: unacceptable character '�' (0xFFFD) special characters are not allowed
in "<string>", position 817