Giter Club home page Giter Club logo

bossplugin's People

Contributors

hmmhmmmm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bossplugin's Issues

The /boss command not working

I have the plugin installed and the PHAR file is located in the "plugins" file. But the command /boss is not working and the plugin is not shown in /plugins either

Suggestion

be able to edit the weapon the boss can use, so we can give the boss a sharp 5 unbreaking 2 and fire aspect sword for example, compatibility with PiggyCE would be great too (this would be added in the UI when creating the boss with /boss or later editable with the /boss and editing the boss

Crash server PureEntitiesX

Code:
[44] }
[45] }else{
[46] return $this->health;
[47] }
[48] }
[49]
[50] public function entityBaseTick(int $tickDiff = 1): bool{
[51] if($this->namedtag instanceof CompoundTag){
[52] $hasUpdate = parent::entityBaseTick($tickDiff);
[53] if($this->namedtag->hasTag("Boss".$this->getName(), StringTag::class)){
[54] $name = $this->namedtag->getString("Boss".$this->getName());
[55] if(BossData::isBoss($name)){
[56] $this->setNameTag($name." В§c(".$this->getHealth()."/".$this->getMaxHealth().")");
[57] $this->setNameTagAlwaysVisible(true);
[58] $this->setNameTagVisible(true);
[59] if($this->isOnFire()){
[60] $this->extinguish();
[61] }
[62] return $hasUpdate;
[63] }else{

Backtrace:
#0 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/WalkingMonster(181): hmmhmmmm\boss\entity\walk\BossZombie->entityBaseTick(integer 1)
#1 src/pocketmine/level/Level(844): revivalpmmp\pureentities\entity\monster\WalkingMonster->onUpdate(integer 51602)
#2 src/pocketmine/level/Level(777): pocketmine\level\Level->actuallyDoTick(integer 51602)
#3 src/pocketmine/Server(2256): pocketmine\level\Level->doTick(integer 51602)
#4 src/pocketmine/Server(2387): pocketmine\Server->checkTickUpdates(integer 51602, double 1584728432.2624)
#5 src/pocketmine/Server(2143): pocketmine\Server->tick()
#6 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1584): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[15] /home/mcserver/, string[23] /home/mcserver/plugins/)
#9 src/pocketmine/PocketMine(296): pocketmine\server()
#10 (11): require(string[70] phar:///home/mcserver/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Custom Attack [Suggestion]

Can you make it where we can create powers for them and how much dmg they deal? Something similar to the Nametag Boss addon for realms?

For example:
They have a chicken where it shoots out 10 eggs really fast and deals 1/2 heart per hit
or...
A stray that can teleport like an enderman and shoots out fireballs?

Call to a member function getFolderName() on null

Error: "Call to a member function getFolderName() on null" (EXCEPTION) in "plugins/BossPlugin-master/src/hmmhmmmm/boss/scheduler/BossTask" at line 37
[08:20:29] [Server thread/DEBUG]: #0 plugins/BossPlugin-master/src/hmmhmmmm/boss/scheduler/BossTask(23): hmmhmmmm\boss\scheduler\BossTask->respawn()
[08:20:29] [Server thread/DEBUG]: #1 src/pocketmine/scheduler/TaskHandler(134): hmmhmmmm\boss\scheduler\BossTask->onRun(integer 1)
[08:20:29] [Server thread/DEBUG]: #2 src/pocketmine/scheduler/TaskScheduler(176): pocketmine\scheduler\TaskHandler->run(integer 1)
[08:20:29] [Server thread/DEBUG]: #3 src/pocketmine/plugin/PluginManager(643): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1)
[08:20:29] [Server thread/DEBUG]: #4 src/pocketmine/Server(2380): pocketmine\plugin\PluginManager->tickSchedulers(integer 1)
[08:20:29] [Server thread/DEBUG]: #5 src/pocketmine/Server(2143): pocketmine\Server->tick()
[08:20:29] [Server thread/DEBUG]: #6 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
[08:20:29] [Server thread/DEBUG]: #7 src/pocketmine/Server(1584): pocketmine\Server->start()
[08:20:29] [Server thread/DEBUG]: #8 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[34] /storage/emulated/0/PocketMine-MP/, string[42] /storage/emulated/0/PocketMine-MP/plugins/)
[08:20:29] [Server thread/DEBUG]: #9 src/pocketmine/PocketMine(296): pocketmine\server()
[08:20:29] [Server thread/DEBUG]: #10 (11): require(string[89] phar:///storage/emulated/0/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/Pocke)
[08:20:29] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
[08:20:29] [Server thread/EMERGENCY]: Please upload the "/storage/emulated/0/PocketMine-MP/crashdumps/Mon_Mar_16-08.20.29-UTC_2020.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.

Another suggestion

Be able to set flags for where the boss spawns

Example: you could create an area let’s say with /boss pos1 :boss pos2 /boss areacreate (name) then within this area you can change attribute like no fall damage, no potions, no dropping items, not breaking/placing blocks, player damage (so you can/can’t deal damage to other players trying to kill to boss) would be very useful and would take this plugin to the next level

Boss Stuck Problem

I created a arena on flat world and when I done build arena I spawn the boss and fight with friends the boss sometimes stuck on the floor and stuck forever unless someone uses knockback enchant! help pls

Question/suggestion

Is there any rewards? I don’t see anything in the config or a command

Suggestion: add rewards vanilla items and command support would be great (command support would be money, crate keys, kits etc)

Plugin-sided crash

PureEntitiesX is causing crash because of this:

Return value of pocketmine\entity\Living::getArmorInventory() must be an instance of pocketmine\inventory\ArmorInventory, null returned

Can you try to fix it in order to work properly? Plugin is great btw

crash

[23:52:00] [Server thread/CRITICAL]: Error: "Call to a member function hasTag() on null" (EXCEPTION) in "plugins/BossPlugin_dev-2.phar/src/hmmhmmmm/boss/entity/BossPolarBear" at line 50

[23:52:00] [Server thread/DEBUG]: #0 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/WalkingMonster(181): hmmhmmmm\boss\entity\BossPolarBear->entityBaseTick(integer 1)

[23:52:00] [Server thread/DEBUG]: #1 src/pocketmine/level/Level(844): revivalpmmp\pureentities\entity\monster\WalkingMonster->onUpdate(integer 35881)

[23:52:00] [Server thread/DEBUG]: #2 src/pocketmine/level/Level(777): pocketmine\level\Level->actuallyDoTick(integer 35881)

[23:52:00] [Server thread/DEBUG]: #3 src/pocketmine/Server(2256): pocketmine\level\Level->doTick(integer 35881)

[23:52:00] [Server thread/DEBUG]: #4 src/pocketmine/Server(2387): pocketmine\Server->checkTickUpdates(integer 35881, double 1584226320.5741)

[23:52:00] [Server thread/DEBUG]: #5 src/pocketmine/Server(2143): pocketmine\Server->tick()

[23:52:00] [Server thread/DEBUG]: #6 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()

[23:52:00] [Server thread/DEBUG]: #7 src/pocketmine/Server(1584): pocketmine\Server->start()

[23:52:00] [Server thread/DEBUG]: #8 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/minecraft/, string[24] /home/minecraft/plugins/)

[23:52:00] [Server thread/DEBUG]: #9 src/pocketmine/PocketMine(296): pocketmine\server()

[23:52:00] [Server thread/DEBUG]: #10 (11): require(string[68] phar:///home/minecraft/pocketmine.phar/src/pocketmine/PocketMine.php)

[23:52:00] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump

DELETE SPAWN MESSAGE

Hello ,
Already thank you for this great plugins that you created, I have a quick question, I deleted the messages "a boss has spawn" but there is still a bit of the message "[Boss]" that appears in the chat , and I can't delete it, can you tell me how?

thank you in advance

Hide alert chat

Add option to disable chat notifications, very clogged chat

suggestion / request

hello is there a way to spawn bosses multiple times on a world? so 1 boss?
I would like to have "Lvl1 Zombie" boss 10x in my dungeons, for example

if there is no such possibility, is there a way to implement it?

Bug

The boss only deals damage to the players armor before dealing damage to the player, so the boss would have to destroy all the armor on a player before he starts damaging the player, even if the player is wearing only boots all the damage will go to the boots

suggestion

Make it so the boss attacks the closest player, atm it only attacks one players until that player dies/leaves or runs out of distance which makes it easy for the other players

Suggestion

is ‘human’ a supported entity in pure entitysx? would be nice to make human bosses too (custom skins would be great)

crash server

PocketMine-MP Crash Dump Sun Mar 15 10:37:07 UTC 2020

Error: Call to a member function hasTag() on null
File: plugins/BossPlugin_dev-2.phar/src/hmmhmmmm/boss/entity/BossSkeleton
Line: 50
Type: Error

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: BossPlugin v3.1

Code:
[41] public function targetOption(Creature $creature, float $distance) : bool{
[42] if(!($creature instanceof SlapperHuman)){
[43] return parent::targetOption($creature, $distance);
[44] }
[45] return false;
[46] }
[47]
[48] public function entityBaseTick(int $tickDiff = 1) : bool{
[49] $hasUpdate = parent::entityBaseTick($tickDiff);
[50] if($this->namedtag->hasTag("Boss".$this->getName(), StringTag::class)){
[51] $name = $this->namedtag->getString("Boss".$this->getName());
[52] if(BossData::isBoss($name)){
[53] $this->setNameTag($name." В§c(".$this->getHealth()."/".$this->getMaxHealth().")");
[54] $this->setNameTagAlwaysVisible(true);
[55] $this->setNameTagVisible(true);
[56] }
[57] }
[58] return $hasUpdate;
[59] }
[60]

Backtrace:
#0 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/WalkingMonster(181): hmmhmmmm\boss\entity\BossSkeleton->entityBaseTick(integer 1)
#1 src/pocketmine/level/Level(844): revivalpmmp\pureentities\entity\monster\WalkingMonster->onUpdate(integer 6109)
#2 src/pocketmine/level/Level(777): pocketmine\level\Level->actuallyDoTick(integer 6109)
#3 src/pocketmine/Server(2256): pocketmine\level\Level->doTick(integer 6109)
#4 src/pocketmine/Server(2387): pocketmine\Server->checkTickUpdates(integer 6109, double 1584268627.1942)
#5 src/pocketmine/Server(2143): pocketmine\Server->tick()
#6 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1584): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[15] /home/mcserver/, string[23] /home/mcserver/plugins/)
#9 src/pocketmine/PocketMine(296): pocketmine\server()
#10 (11): require(string[70] phar:///home/mcserver/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

PocketMine-MP version: 3.11.6 [Protocol 389]
Git commit: cb9e79b3985719671bd5cbaa7f665b04a6d33359-dirty
uname -a: Linux debian-4gb-fsn1-1 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64
PHP Version: 7.3.14
Zend version: 3.3.14
OS : Linux, linux

Burgerspawner and bossplugin issue

Please allow us to utilize other plugins that register mobs so that we dont have to disable the plugins we already have to utilize yours.
Since youre using the same mobs as the spawners please let the registered mobs of other plugins work with the boss plugin.

Line: 407 Type: Error

Error: Call to a member function getContents() on null
File: src/pocketmine/entity/Living
Line: 407
Type: Error

A PLUGIN WAS INVOLVED IN THIS CRASH
BAD PLUGIN: BossPlugin v3.21

Code:
[398] }
[399]
[400] /**
[401] * Returns how many armour points this mob has. Armour points provide a percentage reduction to damage.
[402] * For mobs which can wear armour, this should return the sum total of the armour points provided by their
[403] * equipment.
[404] /
[405] public function getArmorPoints() : int{
[406] $total = 0;
[407] foreach($this->armorInventory->getContents() as $item){
[408] $total += $item->getDefensePoints();
[409] }
[410]
[411] return $total;
[412] }
[413]
[414] /
*
[415] * Returns the highest level of the specified enchantment on any armour piece that the entity is currently wearing.
[416] */
[417] public function getHighestArmorEnchantmentLevel(int $enchantmentId) : int{

Backtrace:
#0 src/pocketmine/entity/Living(441): pocketmine\entity\Living->getArmorPoints()
#1 src/pocketmine/entity/Human(683): pocketmine\entity\Living->applyDamageModifiers(object pocketmine\event\entity\EntityDamageByEntityEvent)
#2 src/pocketmine/entity/Living(533): pocketmine\entity\Human->applyDamageModifiers(object pocketmine\event\entity\EntityDamageByEntityEvent)
#3 src/pocketmine/Player(3686): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#4 plugins/BossPlugin.phar/src/hmmhmmmm/boss/entity/walk/BossSpider(36): pocketmine\Player->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#5 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/WalkingMonster(72): hmmhmmmm\boss\entity\walk\BossSpider->attackEntity(object pocketmine\Player)
#6 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/WalkingMonster(198): revivalpmmp\pureentities\entity\monster\WalkingMonster->checkAndAttackEntity(object pocketmine\Player)
#7 src/pocketmine/level/Level(844): revivalpmmp\pureentities\entity\monster\WalkingMonster->onUpdate(integer 137193)
#8 src/pocketmine/level/Level(777): pocketmine\level\Level->actuallyDoTick(integer 137193)
#9 src/pocketmine/Server(2256): pocketmine\level\Level->doTick(integer 137193)
#10 src/pocketmine/Server(2387): pocketmine\Server->checkTickUpdates(integer 137193, double 1585691798.519)
#11 src/pocketmine/Server(2143): pocketmine\Server->tick()
#12 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
#13 src/pocketmine/Server(1584): pocketmine\Server->start()
#14 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[15] /home/mcserver/, string[23] /home/mcserver/plugins/)
#15 src/pocketmine/PocketMine(296): pocketmine\server()
#16 (11): require(string[70] phar:///home/mcserver/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

PocketMine-MP version: 3.11.6 [Protocol 389]

error

[20:15:35] [Server thread/CRITICAL]: TypeError: "Argument 1 passed to CortexPE\Commando\BaseCommand::__construct() mu
st implement interface pocketmine\plugin\Plugin, string given, called in phar:///home/musicofksh/mw/plugins/BossPlugi
n_v3.21.phar/src/hmmhmmmm/boss/cmd/BossCommand.php on line 27" (EXCEPTION) in "/home/musicofksh/mw/virions/Commando-m
aster/src/CortexPE/Commando/BaseCommand" at line 79
[20:15:35] [Server thread/CRITICAL]: #0 plugins/BossPlugin_v3.21.phar/src/hmmhmmmm/boss/cmd/BossCommand(27): CortexPE
\Commando\BaseCommand->__construct(string[4] boss, string[7] open ui)
[20:15:35] [Server thread/CRITICAL]: #1 plugins/BossPlugin_v3.21.phar/src/hmmhmmmm/boss/Boss(203): hmmhmmmm\boss\cmd
BossCommand->__construct(object hmmhmmmm\boss\Boss)
[20:15:35] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/plugin/PluginBase(116): hmmhmmmm\boss\Boss->onEnable()
[20:15:35] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/plugin/PluginManager(552): pocketmine\plugin\PluginBase-

setEnabled(boolean 1)
[20:15:35] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/Server(1785): pocketmine\plugin\PluginManager->enablePlu
gin(object hmmhmmmm\boss\Boss)
[20:15:35] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/Server(1771): pocketmine\Server->enablePlugin(object hmm
hmmmm\boss\Boss)
[20:15:35] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/Server(1584): pocketmine\Server->enablePlugins(integer 1
)
[20:15:35] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/PocketMine(314): pocketmine\Server->__construct(object B
aseClassLoader, object pocketmine\utils\MainLogger, string[20] /home/musicofksh/mw/, string[28] /home/musicofksh/mw/p
lugins/)
[20:15:35] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/PocketMine(344): pocketmine\server()
[20:15:35] [Server thread/CRITICAL]: #9 pmsrc(11): require(string[75] phar:///home/musicofksh/mw/PocketMine-MP.phar/s
rc/pocketmine/PocketMine.php)

Issue

[17:38:54] [Server thread/INFO]: Enabling BossPlugin v3.6
[17:38:54] [Server thread/ERROR]: [BossPlugin] Libraries CustomUI not found, Please download this plugin to as .phar
[17:38:54] [Server thread/INFO]: Disabling BossPlugin v3.6

Suggestion

Top damage rewards

Instead of the player who kills the boss gets rewards it could be based off of who does the most damage to the boss.

Example:

If someone deals 7000 out of 10000 damage to the boss they will get the best rewards

If someone did an additional 2000 damage to the same boss they would get the 2nd best rewards

And this could be setup in the config or in the UI

Rewards:
Top1: (command)
Top2: (command)

With the ability to change how many rewards so if you want only 1 you can just use top1 if you want to have Upto top10 you can do top1 -> top10
...

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.