File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
src/main/java/lol/hyper/toolstats Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ public final class ToolStats extends JavaPlugin {
116116 public final Logger logger = this .getLogger ();
117117 public final File configFile = new File (this .getDataFolder (), "config.yml" );
118118 public boolean tokens = false ;
119- public Set <NamespacedKey > tokenKeys = new HashSet <>();
119+ public final Set <NamespacedKey > tokenKeys = new HashSet <>();
120120
121121 public BlockBreak blockBreak ;
122122 public ChunkPopulate chunkPopulate ;
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ public void onDamage(EntityDamageByEntityEvent event) {
9292 // trident is being thrown at something
9393 if (event .getDamager () instanceof Trident trident ) {
9494 ItemStack newTrident = trident .getItemStack ();
95- ItemMeta newMeta = null ;
95+ ItemMeta newMeta ;
9696 // trident is killing player
9797 if (mobBeingAttacked instanceof Player ) {
9898 newMeta = toolStats .itemLore .updatePlayerKills (trident .getItemStack (), 1 );
Original file line number Diff line number Diff line change 2929import org .bukkit .inventory .ItemStack ;
3030import org .bukkit .inventory .PlayerInventory ;
3131import org .bukkit .inventory .meta .ItemMeta ;
32- import org .jetbrains .annotations .Nullable ;
3332
3433public class ShootBow implements Listener {
3534
You can’t perform that action at this time.
0 commit comments