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 » 25 lis 2012, 01:41

PODPIS


Ahoj, dnes jsem upravil commandy v pluginu MyCommand a vždy se mi přepisuje do defualtniho :/


Spoiler: zobrazit

Kód: Vybrat vše

# 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: /vip
  type: text
  text:
  - $red Vyhody Normal. VIP
  - $blue ------------------------------------------
  - $gold 1. Vylecit se -$darkgreen /heal
  - $gold 2. Vratit se na misto smrti -$darkgreen /back
  - $gold 3. Pred jmenem $white[$yellowVIP$white]
  - $gold 4. Dat si na hlavu block co drzis v ruce -$darkgreen /hat
  - $gold 5. Portovat se k hracum -$darkgreen /tpa jmeno_hrace.$goldOn potvrdi $darkgreen /tpaccept
  - $blue ------------------------------------------
  - $purple KOUPIT VIP --> $blue /koupit vip
  runcmd:
  - /sample
  cost: 0
  delaytimer: 5
'2':
  command: /starvip
  type: text
  text:
  - $red Vyhody starVIP
  - $blue ------------------------------------------
  - $gold 1) To same jako $e normal. VIP
  - $gold 2) Vstup do $darkred Creative $gold sveta -$darkgreen /warp creative
  - $gold 3) Dat si den nebo noc - $darkgreen /ptime day/night
  - $gold 4) Prefix pred jmenem $white[$redstar$goldVIP$white]
  - $blue ------------------------------------------
  - $purple KOUPIT starVIP --> $blue /koupit starvip
  runcmd:
  - /sample
  cost: 0
  delaytimer: 5
'3':
  command: /koupit vip
  type: text
  text:
  - $red -------------------------------------------
  - $darkblue Ceska Republika
  - $blue SMS:$gold FAKAHEDA L22866 vip $player
  - $blue Cislo:$gold 9033350
  - $blue Cena:$gold 50Kc
  - $red --------------------------
  - $darkblue Slovenska Republika
  - $blue SMS:$gold FAKAHEDA L22866 2 vip $player
  - $blue Cislo:$gold 8866
  - $blue Cena:$gold 2 € (eura)
  - $red -------------------------------------------
  - $darkred Pokud se vam neda VIP do $n5 minut$r kontaktujte prosim Admina
  runcmd:
  - /sample
  cost: 0
  delaytimer: 5
'4':
  command: /koupit starvip
  type: text
  text:
  - $red -------------------------------------------
  - $darkblue Ceska Republika
  - $blue SMS:$gold FAKAHEDA L22866 vip $player
  - $blue Cislo:$gold 9033399
  - $blue Cena:$gold 99 Kc
  - $darkblue Slovenska Republika
  - $red -----------------------------
  - $blue SMS:$gold FAKHEDA L22866 4 vip $player
  - $blue Cislo:$gold 8866
  - $blue Cena:$gold 4 € (eura)
  - $red --------------------------------------------
  - $darkred Pokud se vam neda VIP do $n5 minut$r kontaktujte prosim Admina
  runcmd:
  - /sample
  cost: 0
  delaytimer: 5
'5':
  command: /mycmd-runcmdtimer
  type: runcommand
  text:
  - $red Text of command $black5
  runcmd:
  - /say Restart za...
  - $delay$/say 5
  - $delay$/say 4
  - $delay$/say 3
  - $delay$/say 2
  - $delay$/say 1
  - $delay$/kickall Server byl restartovan
  - $delay$/stop
  cost: 0
  delaytimer: 1
'6':
  command: /nic
  type: runcommand
  text:
  runcmd:
  - /sample
  cost: 0
  delaytimer: 5
'7':
  command: /odpocet
  type: runcommand
  text:
  - $darkgreen -Spout Text-
  - $red MyCommand!
  runcmd:
  - $delay$/oznameni Start za...
  - $delay$/oznameni 5...
  - $delay$/oznameni 4...
  - $delay$/oznameni 3...
  - $delay$/oznameni 2...
  - $delay$/oznameni 1...
  - $delay$/oznameni Ted !!!
  cost: 0
  delaytimer: 2
'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
  cost: 0
'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


v server.log jsem našel tuto chybu :-( :
Spoiler: zobrazit

Kód: Vybrat vše

2012-11-25 00:39:07 [SEVERE] Cannot load plugins/MyCommand/commands.yml
org.bukkit.configuration.InvalidConfigurationException: unacceptable character '�' (0xFFFD) special characters are not allowed
in "<string>", position 2490
   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.j(MinecraftServer.java:320)
   at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:299)
   at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:258)
   at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:147)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:398)
   at net.minecraft.server.ThreadServerApplication.run(SourceFile:856)
Caused by: unacceptable character '�' (0xFFFD) special characters are not allowed
in "<string>", position 2490
   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-11-25 00:39:07 [SEVERE] Cannot load configuration from stream
org.bukkit.configuration.InvalidConfigurationException: unacceptable character '�' (0xFFFD) special characters are not allowed
in "<string>", position 2490
   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 me.mri.mycommand.mycommand.commandsconfig(mycommand.java:225)
   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.j(MinecraftServer.java:320)
   at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:299)
   at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:258)
   at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:147)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:398)
   at net.minecraft.server.ThreadServerApplication.run(SourceFile:856)
Caused by: unacceptable character '�' (0xFFFD) special characters are not allowed
in "<string>", position 2490
   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)
   ... 15 more
2012-11-25 00:39:07 [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.j(MinecraftServer.java:320)
   at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:299)
   at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:258)
   at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:147)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:398)
   at net.minecraft.server.ThreadServerApplication.run(SourceFile:856)
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
CZ/SK TOP Databáze MineCraft Serverů ►KLIK◄
Chceš i Ty mít měnící se podpis? ►KLIK◄

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

Re: MyCommand

#2 Příspěvekod Welton123 » 25 lis 2012, 14:02

Tak na pozici 2490 je tato veta:

Kód: Vybrat vše

- $blue SMS:$gold FAKAHEDA 2 L22866 vip $player


mezera pred $player je 2490 pozice. Kdyz tu mezeru smazu tak pak nebude sedet sms tvar :-(
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

#3 Příspěvekod Sejsel » 25 lis 2012, 14:18

Kód: Vybrat vše

- '$blue SMS:$gold FAKAHEDA 2 L22866 vip $player'
01101110011101010110001001110111

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 » 25 lis 2012, 14:47

Udělal sjem to tak a i nadále to hází chybu a přepisuje se to do defaultního:

Spoiler: zobrazit

Kód: Vybrat vše

# 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/


v defaultnim nejsou ani zadne prikazy
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 24 hostů