mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-08 05:23:01 +00:00
Fixed killallentities task
This commit is contained in:
parent
1667fcdf43
commit
866ddc9648
2 changed files with 9 additions and 7 deletions
|
@ -501,15 +501,16 @@ public class PlotSquared {
|
|||
log(C.PREFIX.s() + "&cIt's really recommended to run Java 1.8, as it increases performance");
|
||||
}
|
||||
TASK = IMP.getTaskManager();
|
||||
if (Settings.KILL_ROAD_MOBS) {
|
||||
IMP.runEntityTask();
|
||||
}
|
||||
if (C.ENABLED.s().length() > 0) {
|
||||
log(C.ENABLED.s());
|
||||
}
|
||||
setupConfigs();
|
||||
setupDefaultFlags();
|
||||
setupDatabase();
|
||||
// Tasks
|
||||
if (Settings.KILL_ROAD_MOBS) {
|
||||
IMP.runEntityTask();
|
||||
}
|
||||
// Events
|
||||
IMP.registerCommands();
|
||||
IMP.registerPlayerEvents();
|
||||
|
@ -550,6 +551,7 @@ public class PlotSquared {
|
|||
// Copy files
|
||||
copyFile("town.template");
|
||||
copyFile("skyblock.template");
|
||||
showDebug();
|
||||
}
|
||||
|
||||
public void copyFile(String file) {
|
||||
|
@ -595,7 +597,7 @@ public class PlotSquared {
|
|||
connection.close();
|
||||
mySQL.closeConnection();
|
||||
} catch (NullPointerException | SQLException e) {
|
||||
if (connection != null) {
|
||||
if (mySQL != null) {
|
||||
log("&cCould not close mysql connection!");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue