fix warnings
This commit is contained in:
parent
43dd143d96
commit
3fe1638e41
2 changed files with 2 additions and 4 deletions
|
|
@ -4,7 +4,6 @@ import org.bukkit.NamespacedKey;
|
||||||
import org.bukkit.OfflinePlayer;
|
import org.bukkit.OfflinePlayer;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.persistence.PersistentDataType;
|
import org.bukkit.persistence.PersistentDataType;
|
||||||
import org.bukkit.plugin.Plugin;
|
|
||||||
|
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import net.kyori.adventure.text.format.TextColor;
|
import net.kyori.adventure.text.format.TextColor;
|
||||||
|
|
@ -19,6 +18,7 @@ public class KillstreakManager {
|
||||||
public NamespacedKey playerKillstreakKey;
|
public NamespacedKey playerKillstreakKey;
|
||||||
public NamespacedKey playerInvisKSKey;
|
public NamespacedKey playerInvisKSKey;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private Killstreak plugin;
|
private Killstreak plugin;
|
||||||
public KillstreakManager(Killstreak plugin) {
|
public KillstreakManager(Killstreak plugin) {
|
||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
|
|
@ -61,8 +61,7 @@ public class KillstreakManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean shouldAnnounceKillstreak(long killstreak, Player p) {
|
public boolean shouldAnnounceKillstreak(long killstreak, Player p) {
|
||||||
Plugin in = plugin.getInvisNinja();
|
if(Killstreak.getInvisNinja() != null && InvisNinja.isPlayerInvisible(p)) return false;
|
||||||
if(in != null && ((InvisNinja)in).isPlayerInvisible(p)) return false;
|
|
||||||
|
|
||||||
return (killstreak >= 5 && killstreak % 5 == 0);
|
return (killstreak >= 5 && killstreak % 5 == 0);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ import net.kyori.adventure.key.Key;
|
||||||
import net.kyori.adventure.sound.Sound;
|
import net.kyori.adventure.sound.Sound;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import net.kyori.adventure.text.TextReplacementConfig;
|
import net.kyori.adventure.text.TextReplacementConfig;
|
||||||
import net.kyori.adventure.text.format.Style;
|
|
||||||
import net.kyori.adventure.text.format.TextColor;
|
import net.kyori.adventure.text.format.TextColor;
|
||||||
|
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue