jasonw4331 / MyPlot

Plot and protection plugin for PocketMine-MP
https://discord.gg/Qqcpp9Q
MIT License
101 stars 90 forks source link

/p dispose not working #296

Closed PetyXbron closed 4 years ago

PetyXbron commented 4 years ago

Issue description

jasonw4331 commented 4 years ago

What language is the server using

PetyXbron commented 4 years ago

My server is using the Cz_cs (the Czech language) from GamakCZ Can language be a problem with a broken command?

jasonw4331 commented 4 years ago

Seems like that is exactly the issue. Please help improve the translations if you can.

The following lines do not match, this is what is causing the problem:

https://github.com/jasonwynn10/MyPlot/blob/master/resources/cze.ini#L25

https://github.com/jasonwynn10/MyPlot/blob/master/resources/cze.ini#L94 https://github.com/jasonwynn10/MyPlot/blob/master/resources/cze.ini#L102 https://github.com/jasonwynn10/MyPlot/blob/master/resources/cze.ini#L110

PetyXbron commented 4 years ago

It's all right, I don't know if I understand, should I correct the translation? Just the line 92 isn't "zbacit" but "zbavit"

jasonw4331 commented 4 years ago

Please correct it and make all 4 the same

PetyXbron commented 4 years ago

All lines is good translated, Only line #94 isn't "zbaCit" but "zbaVit"

...maybe I dont understand, Im very sorry 😂

jasonw4331 commented 4 years ago

94, 102, and 110 say /p <command> confirm

25 does not say confirm

PetyXbron commented 4 years ago

So the command is /p dispose potvrdit? Confirm really means "potvrdit" I dont know sorry... I apologize for the inconvenience

jasonw4331 commented 4 years ago

well, we could make it all english instead I guess 😐

PetyXbron commented 4 years ago

We can't just replace "potvrdit" with "confirm"? Czechs wouldn't mind

jasonw4331 commented 4 years ago

ok, lets do that

PetyXbron commented 4 years ago

so what? should it go already? just a question, will I then get a .phar file and then restart the server?

jasonw4331 commented 4 years ago

test this build please

https://poggit.pmmp.io/r/88684/MyPlot_dev-581.phar

PetyXbron commented 4 years ago

Installing now... sorry for late respond

PetyXbron commented 4 years ago

Not working :/ Video: https://youtu.be/oMc4M5rKlCY (mute audio, music is laggy) Error:



[21:16:22] [Server thread/DEBUG]: #1 vendor/pocketmine/classloader/src/BaseClassLoader(138): include()

[21:16:22] [Server thread/DEBUG]: #2 vendor/pocketmine/classloader/src/BaseClassLoader(124): BaseClassLoader->loadClass(string[32] MyPlot\events\MyPlotDisposeEvent)

[21:16:22] [Server thread/DEBUG]: #3 (): BaseClassLoader->{closure}(string[32] MyPlot\events\MyPlotDisposeEvent)

[21:16:22] [Server thread/DEBUG]: #4 plugins/MyPlot.phar/src/MyPlot/MyPlot(691): spl_autoload_call(string[32] MyPlot\events\MyPlotDisposeEvent)

[21:16:22] [Server thread/DEBUG]: #5 plugins/MyPlot.phar/src/MyPlot/subcommand/DisposeSubCommand(43): MyPlot\MyPlot->disposePlot(object MyPlot\Plot)

[21:16:22] [Server thread/DEBUG]: #6 plugins/MyPlot.phar/src/MyPlot/Commands(230): MyPlot\subcommand\DisposeSubCommand->execute(object pocketmine\Player, array[1])

[21:16:22] [Server thread/DEBUG]: #7 src/pocketmine/command/SimpleCommandMap(248): MyPlot\Commands->execute(object pocketmine\Player, string[1] p, array[1])

[21:16:22] [Server thread/DEBUG]: #8 src/pocketmine/Server(1807): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\Player, string[17] p dispose confirm)

[21:16:22] [Server thread/DEBUG]: #9 src/pocketmine/Player(2221): pocketmine\Server->dispatchCommand(object pocketmine\Player, string[17] p dispose confirm)

[21:16:22] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(244): pocketmine\Player->chat(string[18] /p dispose confirm)

[21:16:22] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket)

[21:16:22] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)

[21:16:22] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/protocol/BatchPacket(126): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket)

[21:16:22] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)

[21:16:22] [Server thread/DEBUG]: #15 src/pocketmine/Player(3121): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)

[21:16:22] [Server thread/DEBUG]: #16 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)

[21:16:22] [Server thread/DEBUG]: #17 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[18] 83.240.127.4 34621, object raklib\protocol\EncapsulatedPacket, integer 0)

[21:16:22] [Server thread/DEBUG]: #18 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()

[21:16:22] [Server thread/DEBUG]: #19 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()

[21:16:22] [Server thread/DEBUG]: #20 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()

[21:16:22] [Server thread/DEBUG]: #21 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()

[21:16:22] [Server thread/DEBUG]: #22 src/pocketmine/Server(2146): pocketmine\snooze\SleeperHandler->sleepUntil(double 1590441382.71)

[21:16:22] [Server thread/DEBUG]: #23 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()

[21:16:22] [Server thread/DEBUG]: #24 src/pocketmine/Server(1584): pocketmine\Server->start()

[21:16:22] [Server thread/DEBUG]: #25 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[15] /home/gs-41592/, string[23] /home/gs-41592/plugins/)

[21:16:22] [Server thread/DEBUG]: #26 src/pocketmine/PocketMine(295): pocketmine\server()

[21:16:22] [Server thread/DEBUG]: #27 (11): require(string[95] phar:///pro/bin/mcpe/pocketmine-stable-1.14.60/PocketMine-MP.phar/src/pocketmine)

[21:16:22] [Server thread/INFO]: [-] PetyXbron```
jasonw4331 commented 4 years ago

well this is new

PetyXbron commented 4 years ago

So......... What now?

jasonw4331 commented 4 years ago

https://poggit.pmmp.io/r/90854/MyPlot_dev-583.phar