Fix dupe scoreboard entries. Make it so perfect builders can't fill or empty bucket.
This commit is contained in:
parent
a1eec79b3b
commit
c5dfddd710
@ -519,6 +519,9 @@ public class SpeedBuilders extends SoloGame
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void onPlayerQuit(PlayerQuitEvent event)
|
public void onPlayerQuit(PlayerQuitEvent event)
|
||||||
{
|
{
|
||||||
|
if (GetTeamList().size() > 1 && GetTeamList().get(1).HasPlayer(event.getPlayer()))
|
||||||
|
GetTeamList().get(1).RemovePlayer(event.getPlayer());
|
||||||
|
|
||||||
RecreationData recreation = null;
|
RecreationData recreation = null;
|
||||||
|
|
||||||
if (_buildRecreations.containsKey(event.getPlayer()))
|
if (_buildRecreations.containsKey(event.getPlayer()))
|
||||||
@ -1441,6 +1444,12 @@ public class SpeedBuilders extends SoloGame
|
|||||||
if (!_buildRecreations.containsKey(event.getPlayer()))
|
if (!_buildRecreations.containsKey(event.getPlayer()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (_perfectBuild.containsKey(event.getPlayer()))
|
||||||
|
{
|
||||||
|
event.setCancelled(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Block liquid = event.getBlockClicked().getRelative(event.getBlockFace());
|
Block liquid = event.getBlockClicked().getRelative(event.getBlockFace());
|
||||||
|
|
||||||
if (!_buildRecreations.get(event.getPlayer()).inBuildArea(liquid))
|
if (!_buildRecreations.get(event.getPlayer()).inBuildArea(liquid))
|
||||||
@ -1463,6 +1472,12 @@ public class SpeedBuilders extends SoloGame
|
|||||||
if (!_buildRecreations.containsKey(event.getPlayer()))
|
if (!_buildRecreations.containsKey(event.getPlayer()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (_perfectBuild.containsKey(event.getPlayer()))
|
||||||
|
{
|
||||||
|
event.setCancelled(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Block liquid = event.getBlockClicked().getRelative(event.getBlockFace());
|
Block liquid = event.getBlockClicked().getRelative(event.getBlockFace());
|
||||||
|
|
||||||
if (!_buildRecreations.get(event.getPlayer()).inBuildArea(liquid))
|
if (!_buildRecreations.get(event.getPlayer()).inBuildArea(liquid))
|
||||||
|
Loading…
Reference in New Issue
Block a user