PlayerUpdateTask should now be run on 1.8.8

This commit is contained in:
fullwall 2020-05-01 00:40:27 +08:00
parent 2b94ad8959
commit 01b3dbfd33
2 changed files with 3 additions and 3 deletions

View File

@ -335,9 +335,7 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
startMetrics();
scheduleSaveTask(Setting.SAVE_TASK_DELAY.asInt());
Bukkit.getPluginManager().callEvent(new CitizensEnableEvent());
if (!Util.getMinecraftRevision().equals("1_8_R3")) {
new PlayerUpdateTask().runTaskTimer(Citizens.this, 0, 1);
}
new PlayerUpdateTask().runTaskTimer(Citizens.this, 0, 1);
}
}, 1) == -1) {
Messaging.severeTr(Messages.LOAD_TASK_NOT_SCHEDULED);

View File

@ -198,6 +198,7 @@ public class CommandTrait extends Trait {
if (op) {
clicker.setOp(true);
}
if (bungeeServer != null) {
ByteArrayDataOutput out = ByteStreams.newDataOutput();
out.writeUTF("Connect");
@ -211,6 +212,7 @@ public class CommandTrait extends Trait {
t.printStackTrace();
}
}
if (op) {
clicker.setOp(wasOp);
}