1.1-RELEASECANDIDATE-1
Made the particles in /f fly more cloud like Changed wilderness color to Darkgreen Added a factionless check to inspect, so itll now disable the when you try to check with no faction. Inspect will disable upon entering combat You cannot claim outside the worldborder anymore, the chunkbuffer is taken into account. Particles WILL NOT appear in /vanish and in spectator mode
This commit is contained in:
@@ -47,15 +47,21 @@ public class CmdFly extends FCommand {
|
||||
if (!player.isFlying()) {
|
||||
continue;
|
||||
}
|
||||
if (player.getGameMode() == GameMode.SPECTATOR){
|
||||
continue;
|
||||
}
|
||||
if (FPlayers.getInstance().getByPlayer(player).isVanished()){
|
||||
continue;
|
||||
}
|
||||
|
||||
ParticleEffect.CLOUD.display(0, 0, 0, 0, 1, player.getLocation().add(0, -0.35, 0), 16);
|
||||
ParticleEffect.CLOUD.display((float) 0, (float) 0, (float) 0, (float) 0, 3, player.getLocation().add(0, -0.35, 0), 16);
|
||||
}
|
||||
if (flyMap.keySet().size() == 0) {
|
||||
Bukkit.getScheduler().cancelTask(id);
|
||||
id = -1;
|
||||
}
|
||||
}
|
||||
}, 10L, 10L);
|
||||
}, 10L, 3L);
|
||||
}
|
||||
|
||||
public static void startFlyCheck() {
|
||||
@@ -76,7 +82,6 @@ public class CmdFly extends FCommand {
|
||||
continue;
|
||||
}
|
||||
FPlayer fPlayer = FPlayers.getInstance().getByPlayer(player);
|
||||
|
||||
if (fPlayer == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -52,8 +52,8 @@ public class CmdRules extends FCommand {
|
||||
if (args.get(0).equalsIgnoreCase("set")) {
|
||||
fme.msg(TL.COMMAND_RULES_SET_INVALIDARGS);
|
||||
}
|
||||
if (args.get(0).equalsIgnoreCase("add")) {
|
||||
fme.msg(TL.COMMAND_RULES_ADD_INVALIDARGS);
|
||||
if (args.get(0).equalsIgnoreCase("remove")) {
|
||||
fme.msg(TL.COMMAND_RULES_REMOVE_INVALIDARGS);
|
||||
}
|
||||
if (args.get(0).equalsIgnoreCase("clear")) {
|
||||
fme.getFaction().clearRules();
|
||||
|
||||
@@ -202,7 +202,7 @@ public class FCmdRoot extends FCommand {
|
||||
this.addSubCommand(this.cmdTpBanner);
|
||||
this.addSubCommand(this.cmdKillHolograms);
|
||||
|
||||
if (CoreProtect.getInstance() != null){
|
||||
if (Bukkit.getServer().getPluginManager().getPlugin("CoreProtect") != null){
|
||||
P.p.log("Found CoreProtect, enabling Inspect");
|
||||
this.addSubCommand(this.cmdInspect);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user