Comments (9)
ups
from bedwarsultimate.
The author already said that not yet finish.
from bedwarsultimate.
Saying crash will not help me to reproduce the issue. When did it happen or what command did you use?
from bedwarsultimate.
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.
I'll be very happy guys if you could tell me when the error occurs so I can push a fix.
from bedwarsultimate.
$gameName = $args[1]; i found this on 328
from bedwarsultimate.
$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.
Fixed in 7129ace
from bedwarsultimate.
@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)
- I don't get the commands HOT 1
- Requirements HOT 1
- addteam crashed
- How to use this plugin HOT 1
- Doesn't load HOT 1
- TNT and fireball error HOT 1
- discord link dont work HOT 1
- Idea #1💡
- Request
- Crash HOT 1
- Improve
- Bug HOT 3
- fix holograms diamond and emerald generator not at the specified coordinate position HOT 1
- Game doesnt stop when all beds are broken
- get GUU HOT 2
- Will u add the ui to GUIshop and team upgrade in setting option. HOT 1
- On Player Buy Sword HOT 1
- There Is No pickaxe and tools option in item shop
- Feature HOT 1
- Pm5 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bedwarsultimate.