Coder Social home page Coder Social logo

vanillacoordinates's Introduction

VanillaCoordinates

Show coordinates in a server as your client does in vanilla minecraft!

HitCount Poggit
HitCount Poggit-CI

Where to download a compiled version?

You can get the latest compiled version here.

How to install?

After downloading the compiled version from poggit, simply put the file in your server directory (/plugins)

How does this work?

This plugin shows the coordinates on the upper left cornor same like in vanila minecraft! You can customize commands and messages in the config.yml which can be found in plugins_data.

Suggestions and Issues

You can simply open an issue if you want to suggest anything.

You can simply open an issue if you find any bugs and I'll try to fix it as soon as possible!

vanillacoordinates's People

Contributors

poggit-bot avatar shelly7w7 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

vanillacoordinates's Issues

Bug with Vanilla Coordinates Plugin

Hi Shelly,

Today I made a server in Aternos for Minecraft Bedrock with Plugins (the last version) and I found yours and I wanted to put it. Everything was normal but then when I tried to activate the command the server crashes and I get kicked out.

Is there any way to solve it? And if there isn't can you patch it?

Here is what the log says when I use the command:

2020-05-06 [11:56:43] [Server thread/CRITICAL]: Error: "Call to undefined method pocketmine\command\ConsoleCommandSender::dataPacket()" (EXCEPTION) in "plugins/VanillaCoordinates.phar/src/shelly7w7/VanillaCoordinates/command/CoordinateCommand" at line 37

51 | 2020-05-06 [11:56:43] [Server thread/DEBUG]: #0 src/pocketmine/command/SimpleCommandMap(248): shelly7w7\VanillaCoordinates\command\CoordinateCommand->execute(object pocketmine\command\ConsoleCommandSender, string[11] coordinates, array[1])
52 | 2020-05-06 [11:56:43] [Server thread/DEBUG]: #1 src/pocketmine/Server(1807): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[14] coordinates on)
53 | 2020-05-06 [11:56:43] [Server thread/DEBUG]: #2 src/pocketmine/Server(1419): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[14] coordinates on)
54 | 2020-05-06 [11:56:43] [Server thread/DEBUG]: #3 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\Server->pocketmine{closure}()
55 | 2020-05-06 [11:56:43] [Server thread/DEBUG]: #4 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
56 | 2020-05-06 [11:56:43] [Server thread/DEBUG]: #5 src/pocketmine/Server(2146): pocketmine\snooze\SleeperHandler->sleepUntil(double 1588759003.7014)
57 | 2020-05-06 [11:56:43] [Server thread/DEBUG]: #6 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
58 | 2020-05-06 [11:56:43] [Server thread/DEBUG]: #7 src/pocketmine/Server(1584): pocketmine\Server->start()
59 | 2020-05-06 [11:56:43] [Server thread/DEBUG]: #8 src/pocketmine/PocketMine(273): pocketmine\Server->_construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /aternos/server/, string[24] /aternos/server/plugins/)
60 | 2020-05-06 [11:56:43] [Server thread/DEBUG]: #9 src/pocketmine/PocketMine(296): pocketmine\server()
61 | 2020-05-06 [11:56:43] [Server thread/DEBUG]: #10 (11): require(string[64] phar:///aternos/server/server.phar/src/pocketmine/PocketMine.php)
62 | 2020-05-06 [11:56:43] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
63 | 2020-05-06 [11:56:43] [Server thread/EMERGENCY]: Please upload the "/aternos/server/crashdumps/Wed_May_6-11.56.43-CEST_2020.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
64 | 2020-05-06 [11:56:43] [Server thread/EMERGENCY]: The crash dump has been automatically submitted to the Crash Archive. You can view it on https://crash.pmmp.io/view/4116498 or use the ID #4116498.
65 | 2020-05-06 [11:56:43] [Server thread/INFO]: Disabling VanillaCoordinates v1.0.0
66 | 2020-05-06 [11:56:43] [Server thread/INFO]: MarcialBD left the game
67 | 2020-05-06 [11:56:43] [Server thread/INFO]: MarcialBD[/80.102.126.240:59815] logged out due to Server closed
68 | 2020-05-06 [11:56:43] [Server thread/INFO]: Unloading world "world
"

PS: I don't about programming but I think that this could be useful to fix it

I'm waiting for your answer,
MarcialBD

The plugin is crashing with the newest pocketmine version

PocketMine-MP Crash Dump Thu Apr 8 06:33:41 UTC 2021

Error: Call to undefined method pocketmine\command\ConsoleCommandSender::dataPacket()
File: plugins/VanillaCoordinates.phar/src/shelly7w7/VanillaCoordinates/command/CoordinateCommand
Line: 37
Type: Error

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: VanillaCoordinates v1.0.0

Code:
[28] return true;
[29] }
[30]
[31] if (isset($args[0])) {
[32] switch ($args[0]) {
[33]
[34] case "on":
[35] $pk = new GameRulesChangedPacket();
[36] $pk->gameRules = ["showcoordinates" => [1, true]];
[37] $sender->dataPacket($pk);
[38] $sender->sendMessage($this->plugin->config->get("turned-on"));
[39] break;
[40]
[41] case "off":
[42] $pk = new GameRulesChangedPacket();
[43] $pk->gameRules = ["showcoordinates" => [1, false]];
[44] $sender->dataPacket($pk);
[45] $sender->sendMessage($this->plugin->config->get("turned-off"));
[46]
[47] }

Backtrace:
#0 pmsrc/src/pocketmine/command/SimpleCommandMap(248): shelly7w7\VanillaCoordinates\command\CoordinateCommand->execute(object pocketmine\command\ConsoleCommandSender, string[11] coordinates, array[1])
#1 pmsrc/src/pocketmine/Server(1809): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[14] coordinates on)
#2 pmsrc/src/pocketmine/Server(1422): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[14] coordinates on)
#3 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\Server->pocketmine{closure}()
#4 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
#5 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1617863621.0128)
#6 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#7 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#8 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[6] /data/, string[9] /plugins/)
#9 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#10 pmsrc(11): require(string[67] phar:///pocketmine/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

PocketMine-MP version: 3.19.0 [Protocol 431]
Git commit: b307cd0aa15b76cfe41d2a649d14b3aa6fb78f64
uname -a: Linux 960aa0d4cdaf 4.19.121-linuxkit #1 SMP Thu Jan 21 15:36:34 UTC 2021 x86_64
PHP Version: 7.4.16
Zend version: 3.4.0
OS : Linux, linux
Composer libraries:

  • adhocore/json-comment 1.1.0@cf7998124d1050b83d7d985447fefd630e09c1a2
  • daverandom/callback-validator unknown@unknown
  • pocketmine/binaryutils 0.1.13@0abee38d4e2861621f262c79a2a3d699d8a697f4
  • pocketmine/callback-validator 1.0.3@64787469766bcaa7e5885242e85c23c25e8c55a2
  • pocketmine/classloader 0.1.2@9757928424652393b178a3760073113aa7c9911b
  • pocketmine/log 0.2.1@830b44a2cf96ef703c550abe64302f230231ca49
  • pocketmine/log-pthreads 0.1.3@e477ecf6ec214fdd4415ea1da3fdd9d73bf699ea
  • pocketmine/math 0.2.6@43057cb8c179a9859677b496a788db922fd5cfc3
  • pocketmine/nbt 0.2.18@9f82ca4d7f97fcd9a566e44b63c4f18a7657ae82
  • pocketmine/pocketmine-mp 3.19.0@b307cd0aa15b76cfe41d2a649d14b3aa6fb78f64
  • pocketmine/raklib 0.12.11@9cce458b8bfde3e4dfdbf70c659fc7b7fe26b5c4
  • pocketmine/snooze 0.1.5@70b5e7937a06878dd321a3182ceb76d56298f2cd
  • pocketmine/spl 0.4.2@6b08b7cf8c4afa17139c9a1b3bf1b408531de161

Loaded plugins:
VanillaCoordinates 1.0.0 by Shelly7w7 for API(s) 3.0.0

[06:33:40] [Server thread/CRITICAL]: Error: "Call to undefined method pocketmine\command\ConsoleCommandSender::dataPacket()" (EXCEPTION) in "plugins/VanillaCoordinates.phar/src/shelly7w7/VanillaCoordinates/command/CoordinateCommand" at line 37
[06:33:41] [Server thread/CRITICAL]: #0 pmsrc/src/pocketmine/command/SimpleCommandMap(248): shelly7w7\VanillaCoordinates\command\CoordinateCommand->execute(object pocketmine\command\ConsoleCommandSender, string[11] coordinates, array[1])
[06:33:41] [Server thread/CRITICAL]: #1 pmsrc/src/pocketmine/Server(1809): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[14] coordinates on)
[06:33:41] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/Server(1422): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[14] coordinates on)
[06:33:41] [Server thread/CRITICAL]: #3 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\Server->pocketmine{closure}()
[06:33:41] [Server thread/CRITICAL]: #4 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
[06:33:41] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1617863621.0128)
[06:33:41] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
[06:33:41] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
[06:33:41] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[6] /data/, string[9] /plugins/)
[06:33:41] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
[06:33:41] [Server thread/CRITICAL]: #10 pmsrc(11): require(string[67] phar:///pocketmine/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
[06:33:41] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
[06:33:41] [Server thread/EMERGENCY]: Please upload the "/data/crashdumps/Thu_Apr_8-06.33.41-UTC_2021.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
[06:33:41] [Server thread/EMERGENCY]: The crash dump has been automatically submitted to the Crash Archive. You can view it on https://crash.pmmp.io/view/4874084 or use the ID #4874084.

Error

[17:57:49] [Server thread/INFO]: Enabling VanillaCoordinates v1.0.0
[17:57:49] [Server thread/CRITICAL]: TypeError: "Argument 1 passed to pocketmine\command\Command::setAliases() must be of the type array, bool given, called in phar:///home/explodersname/Assets/Pocketmine/plugins/VanillaCoordinates.phar/src/shelly7w7/VanillaCoordinates/command/CoordinateCommand.php on line 20" (EXCEPTION) in "src/pocketmine/command/Command" at line 215
[17:57:49] [Server thread/CRITICAL]: #0 plugins/VanillaCoordinates.phar/src/shelly7w7/VanillaCoordinates/command/CoordinateCommand(20): pocketmine\command\Command->setAliases(boolean )
[17:57:49] [Server thread/CRITICAL]: #1 plugins/VanillaCoordinates.phar/src/shelly7w7/VanillaCoordinates/Loader(16): shelly7w7\VanillaCoordinates\command\CoordinateCommand->__construct(string[11] coordinates, object shelly7w7\VanillaCoordinates\Loader)
[17:57:49] [Server thread/CRITICAL]: #2 src/pocketmine/plugin/PluginBase(116): shelly7w7\VanillaCoordinates\Loader->onEnable()
[17:57:49] [Server thread/CRITICAL]: #3 src/pocketmine/plugin/PluginManager(552): pocketmine\plugin\PluginBase->setEnabled(boolean 1)
[17:57:49] [Server thread/CRITICAL]: #4 src/pocketmine/Server(1787): pocketmine\plugin\PluginManager->enablePlugin(object shelly7w7\VanillaCoordinates\Loader)
[17:57:49] [Server thread/CRITICAL]: #5 src/pocketmine/Server(1773): pocketmine\Server->enablePlugin(object shelly7w7\VanillaCoordinates\Loader)
[17:57:49] [Server thread/CRITICAL]: #6 src/pocketmine/Server(1586): pocketmine\Server->enablePlugins(integer 1)
[17:57:49] [Server thread/CRITICAL]: #7 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[38] /home/explodersname/Assets/Pocketmine/, string[46] /home/explodersname/Assets/Pocketmine/plugins/)
[17:57:49] [Server thread/CRITICAL]: #8 src/pocketmine/PocketMine(304): pocketmine\server()
[17:57:49] [Server thread/CRITICAL]: #9 (11): require(string[93] phar:///home/explodersname/Assets/Pocketmine/PocketMine-MP.phar/src/pocketmine/P)
[17:57:49] [Server thread/INFO]: Disabling VanillaCoordinates v1.0.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.