Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Problem]MyCMD problem :/


Rekomendowane odpowiedzi

Opublikowano

Jak dodaje komende:

 

'24':
command: /delaytest
type: runcommand
text: //
runcmd:
- $delay$/broadcast 5..
- $delay$/broadcast 4..
- $delay$/broadcast 3..
- $delay$/broadcast 2..
- $delay$/broadcast 1..
- /broadcast Welcome in $player Event at X-$locX Y-$locY Z-$locZ!
- /tpall $player
delaytimer: 1

 

 

 

To komenda nie dziala i leci full błędów : /

 

2013-03-04 19:47:39 [sEVERE] Could not pass event PlayerCommandPreprocessEvent to MyCommand v3.8.1
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at net.minecraft.server.v1_4_R1.PlayerConnection.handleCommand(PlayerConnection.java:972)
at net.minecraft.server.v1_4_R1.PlayerConnection.chat(PlayerConnection.java:898)
at net.minecraft.server.v1_4_R1.PlayerConnection.a(PlayerConnection.java:853)
at net.minecraft.server.v1_4_R1.Packet3Chat.handle(Packet3Chat.java:44)
at net.minecraft.server.v1_4_R1.NetworkManager.b(NetworkManager.java:290)
at net.minecraft.server.v1_4_R1.PlayerConnection.d(PlayerConnection.java:113)
at net.minecraft.server.v1_4_R1.ServerConnection.b(SourceFile:39)
at net.minecraft.server.v1_4_R1.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:598)
at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224)
at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494)
at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
Caused by: java.lang.NullPointerException
at it.mri.mycommand.mycommandPlayerListener.onPlayerCommandPreprocess(mycommandPlayerListener.java:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 16 more

 

 

 

Prosze o szybką pomoc!

Moge wysłać SMS lub coś za rozwiązanie problemu :)

Opublikowano

text: //


'14':
command: /delaytest
type: runcommand
text:
- $red Text of command $black14
runcmd:
- $delay$/broadcast 5..
- $delay$/broadcast 4..
- $delay$/broadcast 3..
- $delay$/broadcast 2..
- $delay$/broadcast 1..
- /broadcast Welcome in $player Event at X-$locX Y-$locY Z-$locZ!
- /tpall $player
cost: 0
delaytimer: 1

zapomniałeś o cost
Opublikowano

Nadal to samo

 

2013-03-04 20:50:27 [sEVERE] Could not pass event PlayerCommandPreprocessEvent to MyCommand v3.8.1
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at net.minecraft.server.v1_4_R1.PlayerConnection.handleCommand(PlayerConnection.java:972)
at net.minecraft.server.v1_4_R1.PlayerConnection.chat(PlayerConnection.java:898)
at net.minecraft.server.v1_4_R1.PlayerConnection.a(PlayerConnection.java:853)
at net.minecraft.server.v1_4_R1.Packet3Chat.handle(Packet3Chat.java:44)
at net.minecraft.server.v1_4_R1.NetworkManager.b(NetworkManager.java:290)
at net.minecraft.server.v1_4_R1.PlayerConnection.d(PlayerConnection.java:113)
at net.minecraft.server.v1_4_R1.ServerConnection.b(SourceFile:39)
at net.minecraft.server.v1_4_R1.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:598)
at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224)
at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494)
at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
Caused by: java.lang.NullPointerException
at it.mri.mycommand.mycommandPlayerListener.onPlayerCommandPreprocess(mycommandPlayerListener.java:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 16 more

 

Opublikowano

podaj wszystko z tego co tam masz z MyCommand/Commands.yml wszystko to postaram się ogarnąć co jest źle :)

Opublikowano

commands.yml

 

# MyCommand v3.7.1 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 ,runasoperator
# - Additional type accept if you use Spoutplugin = spout-text , spout-notification.
# - 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: 31
'1':
command: /l
type: runcommand
text:
- $red Text of command $darkgreen21
runcmd:
- /list
cost: 0
delaytimer: 5
'2':
command: /zabujcy
type: runcommand
text:
- $red Text of command $darkgreen21
runcmd:
- /leadkills
cost: 0
delaytimer: 5
'3':
command: /ustawdom
type: runcommand
text:
- $red Text of command $darkgreen24
runcmd:
- /sethome
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: /vip
type: text
text:
- $black=====================================
- $darkgreen VIP posiada
- $gold - /fly -latasz
- $gold - /back -wroc na miejsce smierci
- $gold - /tpa /tpahere -tepanie sie do kogos
- $gold - /feed -nakramienie
- $gold - /plecak -diamentowe narzedzia co 24h!
- $gold - /biblioteka -darmowy enchant
- $black=====================================
runcmd:
- /sample
cost: 0
delaytimer: 5
'6':
command: /plecak
type: runcommand
text:
- $red Text of command $darkgreen27
runcmd:
- /kit vip
cost: 0
delaytimer: 86400
'7':
command: /enderchest
type: runcommand
text:
- $darkgreen -Spout Text-
- $red MyCommand!
runcmd:
- /kit enderchest
cost: 0
delaytimer: 604800
'8':
command: /awansuj
type: runcommand
text:
- $red Text of command $darkgreen29
runcmd:
- /payrank purchase
cost: 0
delaytimer: 5
'9':
command: /zaloz
type: runcommand
text:
- $gold Put your command over /mycmd-addtimer
- '$gold And change type : from text to addtimer'
runcmd:
- /f create
cost: 0
delaytimer: 5
'10':
command: /dom
type: runcommand
text:
- $gold Put your command over /mycmd-addpermission
- '$gold And change type : from text to addpermission'
runcmd:
- /home
cost: 0
delaytimer: 0
'11':
command: /bogacze
type: runcommand
text:
- 'Player Name : $player'
- 'World : $world'
- 'Health : $health Food : $food'
- 'Exp : $exp Level : $level'
- 'Gamemode : $gamemode'
- 'LastDamage : $lastdamage'
runcmd:
- /balancetop
cost: 0
delaytimer: 5
'12':
command: /pomoc $arg1
type: runcommand
text:
- $red There are $online players online.
runcmd:
- /helpop $arg1
cost: 0
delaytimer: 5
'13':
command: /biblioteka
type: runcommand
text:
- ''
- ''
- ''
- ''
- ''
- ''
- ''
- ''
- ''
- ''
runcmd:
- /warp biblioteka
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
'23':
command: /dom
type: runcommand
runcmd:
- /home
cost: 0
delaytimer: 5
text:
- $red Text of command $darkgreen23
'24':
command: /delaytest
type: runcommand
text:
- $red Text of command $black14
runcmd:
- $delay$/broadcast 5..
- $delay$/broadcast 4..
- $delay$/broadcast 3..
- $delay$/broadcast 2..
- $delay$/broadcast 1..
- /broadcast Welcome in $player Event at X-$locX Y-$locY Z-$locZ!
- /tpall $player
cost: 0
delaytimer: 1

 

 

config.yml

 

# MyCommand v3.7.1 Plugin Config File
# The worlds in 'ignoredworlds' will be ignored by MyCommand
options:
disablepermission: false
disabledebugmessage: true
disabledebugmessageconsole: false
autogeneratecommands: false
minecartevent: false
signheader: '[MYCMD]'
disableconsolesupport: false
ignoredworlds:
active: false
list:
- world
- world_nether
economy:
allowdebit: false
scheduler:
active: false
dateformat: d M yyyy
launchonstartin: 60
launchcheckoneveryNmin: 60
blockset:
delay: 5
language:
prefix: '[MyCmd]'
timer1: ' The command will be performed in : '
timer2: ' You have bypassed the timer'
economy1: ' This command cost %s New Balance %s'
economy2: ' You need %s$ for run this command.'
execute: ' Execute: '
args1: 'No Args...Please use :'
args2: '-> Output Commands :'
item1: ' There are no Command on Items'
perm1: ' Ops,check your permissions.'
sign1: ' Sign Removed!.'
sign2: All line it's empty.
block1: ' Block Removed!.'
spout1: ' No Spoutcraft client found'
blockset1: You must wait %s sec for re-use this

 

Opublikowano

sporo błędów ale od początku czy działa ci wszystko bez tej cmd na event?
2 czy wszystko co podałeś mi jest bez spacji? bo wiesz np:
- /tpall $player
[Musisz mieć 2 spacje]

Opublikowano
2013-03-04 20:50:27 [SEVERE] Could not pass event PlayerCommandPreprocessEvent to MyCommand v3.8.1
org.bukkit.event.EventException

Wina pluginu.Poczekaj na nowszą wersję lub zainstaluj starsze.

Sprawdź też zgodność bukkita z pluginem.

Opublikowano

Spróbuj czy działa na tej wersji:

http://dev.bukkit.org/server-mods/mycommand/files/42-mycommand-v3-8-0/

Jakbyś mógł daj to config na pastebin.com.

Chodzi mi o to żeby były spacje. Może masz źle spacje zrobione.

 

 

Spróbuj jeszcze raz może to

 

'24':
command: /delaytest
type: runcommand
text: //
runcmd:
- $delay$/broadcast 5..
- $delay$/broadcast 4..
- $delay$/broadcast 3..
- $delay$/broadcast 2..
- $delay$/broadcast 1..
- /broadcast Welcome in $player Event at X-$locX Y-$locY Z-$locZ!
- /tpall $player
delaytimer: 1

  • 3 miesiące temu...
Opublikowano

xD ile błędów!! WOWOWWOW

Np. w /vip

jest:

- $gold - /feed -nakramienie

- $gold - /plecak -diamentowe narzedzia co 24h!

- $gold - /biblioteka -darmowy enchant

 

A musi bydź tak:

- '$gold - /feed -nakramienie'

- '$gold - /plecak -diamentowe narzedzia co 24h!'

- '$gold - /biblioteka -darmowy enchant'

 

 

Popoprawiaj to i będzie ok

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...