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