Migrates to modern logging practices.

This commit is contained in:
Tom Hicks
2025-07-14 01:21:18 -07:00
parent 69686d18fd
commit 54f4eaaa6f
2 changed files with 3 additions and 6 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
.gradle/
build/

View File

@@ -1,7 +1,6 @@
package com.majinnaibu.minecraft.plugins.scorekeeper;
import java.util.HashMap;
import java.util.logging.Logger;
import java.util.UUID;
import org.bukkit.entity.Player;
@@ -17,9 +16,6 @@ import com.majinnaibu.minecraft.plugins.scorekeeper.commands.ScoreSubtractComman
public class ScoreKeeperPlugin extends JavaPlugin {
private final HashMap<UUID, Integer> _playerScores = new HashMap<UUID, Integer>();
public final Logger log = Logger.getLogger("Minecraft");
@Override
public void onDisable() {
//TODO: save score data to file
@@ -38,7 +34,7 @@ public class ScoreKeeperPlugin extends JavaPlugin {
//TODO: load score data from file
PluginDescriptionFile pdFile = this.getDescription();
log.info(pdFile.getName() + " version " + pdFile.getVersion() + " is enabled!");
getLogger().info(pdFile.getName() + " version " + pdFile.getVersion() + " is enabled!");
}
public int getPlayerScore(Player player) {