Some (maybe) bugfixes
Dieser Commit ist enthalten in:
Ursprung
64ef4722cd
Commit
e8b981d165
@ -102,9 +102,6 @@ public class FightSystem extends JavaPlugin {
|
||||
TechHider.init();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable() {}
|
||||
|
||||
private void loadConfig() {
|
||||
if(!new File("plugins/" + this.getName() + "/kits.data").exists()) {
|
||||
saveKitData();
|
||||
|
@ -194,7 +194,7 @@ public class TechHider {
|
||||
MultiBlockChangeInfo[] changes = blockStructure.read(0);
|
||||
|
||||
Player p = e.getPlayer();
|
||||
ChunkCoordIntPair pos = changes[0].getChunk();
|
||||
ChunkCoordIntPair pos = packet.getChunkCoordIntPairs().read(0);
|
||||
if(bypass(p, pos.getChunkX(), pos.getChunkZ()))
|
||||
return;
|
||||
|
||||
@ -256,7 +256,7 @@ public class TechHider {
|
||||
FightTeam ft = Fight.getPlayerTeam(p);
|
||||
if(ft == null){
|
||||
return false;
|
||||
}else if(ft == Fight.getBlueTeam()){
|
||||
}else if(ft.equals(Fight.getBlueTeam())){
|
||||
return FightSystem.isEntern() || !(redMinX <= chunkX && chunkX <= redMaxX && redMinZ <= chunkZ && chunkZ <= redMaxZ);
|
||||
}else{
|
||||
return FightSystem.isEntern() || !(blueMinX <= chunkX && chunkX <= blueMaxX && blueMinZ <= chunkZ && chunkZ <= blueMaxZ);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren