Need help fixing a plugin @Developers!

Hey, I’ve been working on a plugin, but it keeps crashing my server so i was wondering if you could help me.

here’s the error:

Declaration of HealthBar\HealthBarCommand::getPlugin() must be compatible with pocketmine\command\PluginIdentifiableCommand::getPlugin(): pocketmine\plugin\Plugin on line10

here’s the code up to line 10:

<?php
namespace HealthBar;

use pocketmine\command\Command;
use pocketmine\command\CommandSender;
use pocketmine\command\PluginIdentifiableCommand;
use pocketmine\Player;
use pocketmine\utils\TextFormat;

class HealthBarCommand extends Command implements PluginIdentifiableCommand{
Any help is appreciated :)

===

-2

Ask the guy with a funny name who knows a lot about code/plugins/pocketmine/programming, aka @Thooov

Former LEET Customer

Twitter- ShiningVex
Discord- TheShiningVex#7277

Yamburgers or Turkey Burgers?

@atomizationyt said in Need help fixing a plugin @Developers!:

Hey, I’ve been working on a plugin, but it keeps crashing my server so i was wondering if you could help me.

here’s the error:

Declaration of HealthBar\HealthBarCommand::getPlugin() must be compatible with pocketmine\command\PluginIdentifiableCommand::getPlugin(): pocketmine\plugin\Plugin on line10

here’s the code up to line 10:

<?php
namespace HealthBar;

use pocketmine\command\Command;
use pocketmine\command\CommandSender;
use pocketmine\command\PluginIdentifiableCommand;
use pocketmine\Player;
use pocketmine\utils\TextFormat;

class HealthBarCommand extends Command implements PluginIdentifiableCommand{
Any help is appreciated :)

Can people read the error message? Also, clearly you need to send the line where you declare HealthBarCommand::getPlugin() because that’s what the error is talking about

  1. Subcribe to The Obsidian Gemstone
  2. Excrete fecal matter on a daily basis
  3. Don’t eat too much sugar before talking to your crush
  4. Stop being cliché
  5. Don’t underestimate the adhesive power of saliva
  6. Don’t eat your boogers
  7. Learn how and when to brag

@thooov said in Need help fixing a plugin @Developers!:

Can people read the error message? Also, clearly you need to send the line where you declare HealthBarCommand::getPlugin() because that’s what the error is talking about

I dont know what the problem is… send the line HealthBarCommand::getPlugin() to what or where?
i need help fixing this plugin, not getting lectured on how to read error messages.

===

@atomizationyt said in Need help fixing a plugin @Developers!:

@thooov said in Need help fixing a plugin @Developers!:

Can people read the error message? Also, clearly you need to send the line where you declare HealthBarCommand::getPlugin() because that’s what the error is talking about

I dont know what the problem is… send the line HealthBarCommand::getPlugin() to what or where?
i need help fixing this plugin, not getting lectured on how to read error messages.

The line where you declare HealthBarCommand::getPlugin()… aka the line that looks somewhat like this:

public function getPlugin()

And I’m not here to lecture you about error messages. Programmers are arrogant. They’ll flame you if you ask a question about a simple error message. Anyways, it’s fine, just send the line and you’ll know how to fix the same error next time (:

  1. Subcribe to The Obsidian Gemstone
  2. Excrete fecal matter on a daily basis
  3. Don’t eat too much sugar before talking to your crush
  4. Stop being cliché
  5. Don’t underestimate the adhesive power of saliva
  6. Don’t eat your boogers
  7. Learn how and when to brag
-2

@thooov I actually agree with you! OMG Programmers HATE me XD

(cough cough) SOFe and dktapps - PMMP
Mojang Dev - TheRaddestBro
I guess you probably hate me too.

MrCakeSlayer probably hates me

Droid does (XD, I kinda made him hate me)

but yeah, I could name hundreds of developers/programmers that hate me. They are arrogant

Former LEET Customer

Twitter- ShiningVex
Discord- TheShiningVex#7277

Yamburgers or Turkey Burgers?

@mcpechicken_ said in Need help fixing a plugin @Developers!:

@thooov I actually agree with you! OMG Programmers HATE me XD

(cough cough) SOFe and dktapps - PMMP
Mojang Dev - TheRaddestBro
I guess you probably hate me too.

MrCakeSlayer probably hates me

Droid does (XD, I kinda made him hate me)

but yeah, I could name hundreds of developers/programmers that hate me. They are arrogant

We didn’t really need to know that you were hated a lot. This is just bad representation of yourself.
Juz sayin ¯_(ツ )_/¯

Feel free to upvote/downvote my posts! We all have opinions, and it's okay if you don't like mine :)

Juz sayin

Also sub to ObsidianTOG on YouTube.

@friendship said in Need help fixing a plugin @Developers!:

@mcpechicken_ said in Need help fixing a plugin @Developers!:

@thooov I actually agree with you! OMG Programmers HATE me XD

(cough cough) SOFe and dktapps - PMMP
Mojang Dev - TheRaddestBro
I guess you probably hate me too.

MrCakeSlayer probably hates me

Droid does (XD, I kinda made him hate me)

but yeah, I could name hundreds of developers/programmers that hate me. They are arrogant

We didn’t really need to know that you were hated a lot. This is just bad representation of yourself.
Juz sayin ¯_(ツ )_/¯

(I’m not a pleaser XD)

But really, developers hate me. You either hate me, or like me. No inbetween. And it grew on me, and Im 100% fine with that

Former LEET Customer

Twitter- ShiningVex
Discord- TheShiningVex#7277

Yamburgers or Turkey Burgers?

@mcpechicken_ said in Need help fixing a plugin @Developers!:

@friendship said in Need help fixing a plugin @Developers!:

@mcpechicken_ said in Need help fixing a plugin @Developers!:

@thooov I actually agree with you! OMG Programmers HATE me XD

(cough cough) SOFe and dktapps - PMMP
Mojang Dev - TheRaddestBro
I guess you probably hate me too.

MrCakeSlayer probably hates me

Droid does (XD, I kinda made him hate me)

but yeah, I could name hundreds of developers/programmers that hate me. They are arrogant

We didn’t really need to know that you were hated a lot. This is just bad representation of yourself.
Juz sayin ¯_(ツ )_/¯

(I’m not a pleaser XD)

But really, developers hate me. You either hate me, or like me. No inbetween. And it grew on me, and Im 100% fine with that

I don’t hate you or love you, I’m neutral

I’m the neutron in an atom :P

Making no sense since 2002™

IGN/Gamertag: JaxThePerson
Discord: JaxThePerson#8819

Vote for OzoneHaven at http://bit.do/ozonevote, and join the OzoneHaven Discord at https://discord.gg/Une7Xrs

Log in to reply

Looks like your connection to LEET Forums was lost, please wait while we try to reconnect.