This commit is contained in:
Gokalp Sen 2025-03-31 23:00:05 +03:00
parent 0234ca209d
commit df19d40689
21 changed files with 48 additions and 9 deletions

Binary file not shown.

View file

@ -4,7 +4,7 @@ import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.gsdistance.grimmsServer.PlayerStats;
import org.gsdistance.grimmsServer.Stats.PlayerStats;
import java.util.Enumeration;

View file

@ -1,7 +1,7 @@
package org.gsdistance.grimmsServer.Events;
import org.gsdistance.grimmsServer.GrimmsServer;
import org.gsdistance.grimmsServer.PlayerStats;
import org.gsdistance.grimmsServer.Stats.PlayerStats;
import java.util.Objects;
import java.util.logging.Level;

View file

@ -1,6 +1,6 @@
package org.gsdistance.grimmsServer.Events;
import org.gsdistance.grimmsServer.PlayerStats;
import org.gsdistance.grimmsServer.Stats.PlayerStats;
public class PlayerJoinEvent {
public static void Event(org.bukkit.event.player.PlayerJoinEvent event) {

View file

@ -1,5 +0,0 @@
package org.gsdistance.grimmsServer;
public class MapStats {
}

View file

@ -0,0 +1,23 @@
package org.gsdistance.grimmsServer.Stats;
import org.bukkit.World;
import org.bukkit.persistence.PersistentDataContainer;
import org.bukkit.persistence.PersistentDataType;
import org.bukkit.plugin.java.JavaPlugin;
import java.util.Dictionary;
import java.util.Hashtable;
public class MapStats {
public static final Dictionary<String, PersistentDataType<?, ?>> Stats = new Hashtable<>();
static {
Stats.put("death_count", PersistentDataType.INTEGER);
Stats.put("join_count", PersistentDataType.INTEGER);
}
public static final Dictionary<String,String> StatNames = new Hashtable<>();
static {
StatNames.put("death_count", "Death Count");
StatNames.put("join_count", "Join Count");
}
}

View file

@ -1,10 +1,11 @@
package org.gsdistance.grimmsServer;
package org.gsdistance.grimmsServer.Stats;
import org.bukkit.NamespacedKey;
import org.bukkit.entity.Player;
import org.bukkit.persistence.PersistentDataContainer;
import org.bukkit.persistence.PersistentDataType;
import org.bukkit.plugin.java.JavaPlugin;
import org.gsdistance.grimmsServer.GrimmsServer;
import java.util.Dictionary;
import java.util.Hashtable;

View file

@ -0,0 +1,20 @@
package org.gsdistance.grimmsServer.Stats;
import org.bukkit.persistence.PersistentDataType;
import java.util.Dictionary;
import java.util.Hashtable;
public class WorldStats {
public static final Dictionary<String, PersistentDataType<?, ?>> Stats = new Hashtable<>();
static {
Stats.put("death_count", PersistentDataType.INTEGER);
Stats.put("join_count", PersistentDataType.INTEGER);
}
public static final Dictionary<String,String> StatNames = new Hashtable<>();
static {
StatNames.put("death_count", "Death Count");
StatNames.put("join_count", "Join Count");
}
}