mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
Fixed generation (which I broke) + Made conversion messages more straightforward.
This commit is contained in:
parent
1815fb09b3
commit
7d9963d386
@ -8,7 +8,6 @@
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
<artifactId>PlotSquared</artifactId>
|
||||
<version>2.11.18</version>
|
||||
<name>PlotSquared</name>
|
||||
<packaging>jar</packaging>
|
||||
<build>
|
||||
|
@ -353,7 +353,6 @@ public class SQLManager implements AbstractDB {
|
||||
if (subList.size() != last || (count % 5000 == 0 && count > 0)) {
|
||||
preparedStmt.executeBatch();
|
||||
preparedStmt.close();
|
||||
|
||||
statement = mod.getCreateMySQL(subList.size());
|
||||
preparedStmt = this.connection.prepareStatement(statement.toString());
|
||||
}
|
||||
@ -377,7 +376,6 @@ public class SQLManager implements AbstractDB {
|
||||
PlotSquared.log("&cERROR 1: " + " | " + objList.get(0).getClass().getCanonicalName());
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
int count = 0;
|
||||
PreparedStatement preparedStmt = null;
|
||||
|
@ -241,6 +241,10 @@ public class LikePlotMeConverter {
|
||||
@Override
|
||||
public void run() {
|
||||
sendMessage("&aDatabase conversion is now complete!");
|
||||
PlotSquared.log("&c - Stop the server");
|
||||
PlotSquared.log("&c - Disable 'plotme-convert.enabled' and 'plotme-convert.cache-uuids' in the settings.yml");
|
||||
PlotSquared.log("&c - Correct any generator settings that haven't copied to 'settings.yml' properly");
|
||||
PlotSquared.log("&c - Start the server");
|
||||
PlotSquared.setAllPlotsRaw(DBFunc.getPlots());
|
||||
}
|
||||
});
|
||||
@ -300,11 +304,7 @@ public class LikePlotMeConverter {
|
||||
} catch (final Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
sendMessage("&cPlease wait until database conversion is complete. You will be notified when this happens");
|
||||
PlotSquared.log("&c - Stop the server");
|
||||
PlotSquared.log("&c - Disable 'plotme-convert.enabled' and 'plotme-convert.cache-uuids' in the settings.yml");
|
||||
PlotSquared.log("&c - Correct any generator settings that haven't copied to 'settings.yml' properly");
|
||||
PlotSquared.log("&c - Start the server");
|
||||
sendMessage("&cPlease wait until database conversion is complete. You will be notified with instructions when this happens!");
|
||||
}
|
||||
});
|
||||
} catch (final Exception e) {
|
||||
|
@ -151,13 +151,11 @@ public class HybridPlotWorld extends ClassicPlotWorld {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.ROAD_SCHEMATIC_ENABLED = true;
|
||||
|
||||
if ((schem1 == null) || (schem2 == null) || (this.ROAD_WIDTH == 0)) {
|
||||
PlotSquared.log(C.PREFIX.s() + "&3 - schematic: &7false");
|
||||
return;
|
||||
}
|
||||
this.ROAD_SCHEMATIC_ENABLED = true;
|
||||
// Do not populate road if using schematic population
|
||||
this.ROAD_BLOCK = new PlotBlock(this.ROAD_BLOCK.id, (byte) 0);
|
||||
final DataCollection[] blocks1 = schem1.getBlockCollection();
|
||||
|
@ -11,5 +11,4 @@ public abstract class EconHandler {
|
||||
public abstract void depositMoney(PlotPlayer player, double amount);
|
||||
public abstract void depositMoney(OfflinePlotPlayer player, double amount);
|
||||
public abstract void setPermission(PlotPlayer player, String perm, boolean value);
|
||||
public abstract boolean getPermission(PlotPlayer player, String perm);
|
||||
}
|
||||
|
@ -97,6 +97,7 @@ public class BukkitChunkManager extends ChunkManager {
|
||||
@Override
|
||||
public void regenerateChunk(String world, ChunkLoc loc) {
|
||||
World worldObj = Bukkit.getWorld(world);
|
||||
// Chunk chunk = worldObj.getChunkAt(loc.x, loc.z);
|
||||
worldObj.regenerateChunk(loc.x, loc.z);
|
||||
for (final Player player : worldObj.getPlayers()) {
|
||||
org.bukkit.Location locObj = player.getLocation();
|
||||
|
@ -73,9 +73,4 @@ public class BukkitEconHandler extends EconHandler {
|
||||
perms.playerRemove(((BukkitPlayer) player).player, perm);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getPermission(PlotPlayer player, String perm) {
|
||||
return player.hasPermission(perm);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user