Giter Site home page Giter Site logo

Crash about bedwarsultimate HOT 9 CLOSED

webscrooge avatar webscrooge commented on May 27, 2024
Crash

from bedwarsultimate.

Comments (9)

GamakCZ avatar GamakCZ commented on May 27, 2024

ups

from bedwarsultimate.

BlueWhaleYT avatar BlueWhaleYT commented on May 27, 2024

The author already said that not yet finish.

from bedwarsultimate.

boi1216 avatar boi1216 commented on May 27, 2024

Saying crash will not help me to reproduce the issue. When did it happen or what command did you use?

from bedwarsultimate.

eforce67 avatar eforce67 commented on May 27, 2024

Its simple, but it just happens. I suggest using the command correctly and you won't have a problem. But it rarely happens

from bedwarsultimate.

boi1216 avatar boi1216 commented on May 27, 2024

I'll be very happy guys if you could tell me when the error occurs so I can push a fix.

from bedwarsultimate.

eforce67 avatar eforce67 commented on May 27, 2024

$gameName = $args[1]; i found this on 328

from bedwarsultimate.

eforce67 avatar eforce67 commented on May 27, 2024

$teams = []; foreach($this->teams as $team){ if(count($team->getPlayers()) <= 0 || !$team->hasBed())continue; $players = []; foreach($team->getPlayers() as $player){ if($player->isAlive() && $player->getLevel()->getFolderName() == $this->worldName){ $players[] = $player; } } if(count($players) >= 1){ $teams[] = $team->getName(); } } return $teams;

if(count($team = $this->getAliveTeams()) === 1){ $this->winnerTeam = $team[0]; $this->state = self::STATE_REBOOT; }

Also this could lead to a bug, so i suggest counting the players also if they are alive or the arena will keep going, also the beds will spawn without a team making the players get a free bed kill while this code can leave to counting the teams only and not the rest of the players which restarts the game only.

from bedwarsultimate.

boi1216 avatar boi1216 commented on May 27, 2024

Fixed in 7129ace

from bedwarsultimate.

boi1216 avatar boi1216 commented on May 27, 2024

@eforce67 There are only alive players inside of the array, should work fine. If you disagree or found a bug create new issue please

from bedwarsultimate.

Related Issues (20)

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.