Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

Commit

Permalink
Added config to allow vanished players to hide particles for moderati…
Browse files Browse the repository at this point in the history
…on purposes
  • Loading branch information
Svenja Reissaus committed Aug 2, 2018
1 parent cbb7d47 commit 6a3b4db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/com/massivecraft/factions/cmd/CmdFly.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ public void run() {
continue;
}

if (FPlayers.getInstance().getByPlayer(player).isVanished()) {
// Actually, vanished players (such as admins) should not display particles to prevent others from knowing their vanished assistance for moderation.
// But we can keep it as a config.
if (P.p.getConfig().getBoolean("ffly.Particles.Enable-While-Vanished")) {
return;
}
continue;
}
if (P.p.useNonPacketParticles) {
// 1.9+ based servers will use the built in particleAPI instead of packet based.
// any particle amount higher than 0 made them go everywhere, and the offset at 0 was not working.
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ enable-faction-flight: true
ffly:
Particles:
Enabled: true
Enable-While-Vanished: true
AutoEnable: true #If set to true, fly will automatically enable when walking into your own chunk.


Expand Down

0 comments on commit 6a3b4db

Please sign in to comment.