MyCommand

Technická podpora k herním serverům Minecraft a Tekkit
Message
Autor
Uživatelský avatar
Welton123
Příspěvky: 2388
Registrován: 08 úno 2012, 17:54
Reputation: 0
Kontaktovat uživatele:

MyCommand

#1 Příspěvekod Welton123 » 23 kvě 2012, 17:20

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
CZ/SK TOP Databáze MineCraft Serverů ►KLIK◄
Chceš i Ty mít měnící se podpis? ►KLIK◄

Uživatelský avatar
siOnzee
Příspěvky: 810
Věk: 28
Registrován: 30 lis 2011, 21:40
Reputation: 4
Bydliště: siOnzee.cz
Kontaktovat uživatele:

Re: MyCommand

#2 Příspěvekod siOnzee » 23 kvě 2012, 18:26

myslel jsem že si to už vyřešil :o

Uživatelský avatar
nejento
Příspěvky: 9815
Registrován: 28 lis 2011, 14:09
Reputation: 55
Kontaktovat uživatele:

Re: MyCommand

#3 Příspěvekod nejento » 23 kvě 2012, 18:31

Když spuštíš s novým configem, tak sem dej ten server.log.
Obrázek

Obrázek Přidejte se ke komunitě zákazníků na FakaHeda.eu Discord! Poznejte nové lidi nebo vyřešte svůj technický problém živě: https://discord.fakaheda.eu/

Uživatelský avatar
Welton123
Příspěvky: 2388
Registrován: 08 úno 2012, 17:54
Reputation: 0
Kontaktovat uživatele:

Re: MyCommand

#4 Příspěvekod Welton123 » 23 kvě 2012, 18:47

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
CZ/SK TOP Databáze MineCraft Serverů ►KLIK◄
Chceš i Ty mít měnící se podpis? ►KLIK◄

MrMinas
Příspěvky: 247
Registrován: 12 dub 2012, 17:38
Reputation: 1

Re: MyCommand

#5 Příspěvekod MrMinas » 23 kvě 2012, 19:34

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
http://query.fakaheda.eu/?port=37872
http://query.fakaheda.eu/?port=27110

Pokud ti pomužu tak mi prosim zvihni karmu
Problemove pluginy

Kód: Vybrat vše

 ChopTree
 NoLaggChunks
 Worldedit + Essentials
 MultiHome
 TrainCart
ecoCreature

Uživatelský avatar
Welton123
Příspěvky: 2388
Registrován: 08 úno 2012, 17:54
Reputation: 0
Kontaktovat uživatele:

Re: MyCommand

#6 Příspěvekod Welton123 » 23 kvě 2012, 21:24

Bohuzel v MyCommand.jar je jen soubor plugin.yml a slotka META-INF a ME
CZ/SK TOP Databáze MineCraft Serverů ►KLIK◄
Chceš i Ty mít měnící se podpis? ►KLIK◄

Uživatelský avatar
Shaggy84675
Příspěvky: 1239
Věk: 28
Registrován: 23 srp 2011, 12:53
Reputation: 0
Kontaktovat uživatele:

Re: MyCommand

#7 Příspěvekod Shaggy84675 » 24 kvě 2012, 05:34

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
Omluvte prosím moji nefunkčnost podpisu. Momentálně přesouvám podpis na svůj webserver.

Uživatelský avatar
Welton123
Příspěvky: 2388
Registrován: 08 úno 2012, 17:54
Reputation: 0
Kontaktovat uživatele:

Re: MyCommand

#8 Příspěvekod Welton123 » 24 kvě 2012, 08:08

Díky :D, to bude počítání ://
CZ/SK TOP Databáze MineCraft Serverů ►KLIK◄
Chceš i Ty mít měnící se podpis? ►KLIK◄

Uživatelský avatar
Sejsel
Příspěvky: 4131
Registrován: 19 čer 2011, 09:43
Reputation: 0
Bydliště: /home/sejsel/
Kontaktovat uživatele:

Re: MyCommand

#9 Příspěvekod Sejsel » 24 kvě 2012, 08:12

Zkus všechno uzavřít do uvozovek. Řekl bych, že za to může nějaký vykřičník nebo tak něco
01101110011101010110001001110111

Uživatelský avatar
Welton123
Příspěvky: 2388
Registrován: 08 úno 2012, 17:54
Reputation: 0
Kontaktovat uživatele:

Re: MyCommand

#10 Příspěvekod Welton123 » 24 kvě 2012, 08:19

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
CZ/SK TOP Databáze MineCraft Serverů ►KLIK◄
Chceš i Ty mít měnící se podpis? ►KLIK◄


Zpět na „Minecraft, Tekkit“

Kdo je online

Uživatelé prohlížející si toto fórum: Žádní registrovaní uživatelé a 46 hostů