Up
This commit is contained in:
parent
0234ca209d
commit
df19d40689
21 changed files with 48 additions and 9 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -4,7 +4,7 @@ import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandExecutor;
|
import org.bukkit.command.CommandExecutor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.gsdistance.grimmsServer.PlayerStats;
|
import org.gsdistance.grimmsServer.Stats.PlayerStats;
|
||||||
|
|
||||||
import java.util.Enumeration;
|
import java.util.Enumeration;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package org.gsdistance.grimmsServer.Events;
|
package org.gsdistance.grimmsServer.Events;
|
||||||
|
|
||||||
import org.gsdistance.grimmsServer.GrimmsServer;
|
import org.gsdistance.grimmsServer.GrimmsServer;
|
||||||
import org.gsdistance.grimmsServer.PlayerStats;
|
import org.gsdistance.grimmsServer.Stats.PlayerStats;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package org.gsdistance.grimmsServer.Events;
|
package org.gsdistance.grimmsServer.Events;
|
||||||
|
|
||||||
import org.gsdistance.grimmsServer.PlayerStats;
|
import org.gsdistance.grimmsServer.Stats.PlayerStats;
|
||||||
|
|
||||||
public class PlayerJoinEvent {
|
public class PlayerJoinEvent {
|
||||||
public static void Event(org.bukkit.event.player.PlayerJoinEvent event) {
|
public static void Event(org.bukkit.event.player.PlayerJoinEvent event) {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
package org.gsdistance.grimmsServer;
|
|
||||||
|
|
||||||
public class MapStats {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -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");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
package org.gsdistance.grimmsServer;
|
package org.gsdistance.grimmsServer.Stats;
|
||||||
|
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.persistence.PersistentDataContainer;
|
import org.bukkit.persistence.PersistentDataContainer;
|
||||||
import org.bukkit.persistence.PersistentDataType;
|
import org.bukkit.persistence.PersistentDataType;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
import org.gsdistance.grimmsServer.GrimmsServer;
|
||||||
|
|
||||||
import java.util.Dictionary;
|
import java.util.Dictionary;
|
||||||
import java.util.Hashtable;
|
import java.util.Hashtable;
|
||||||
|
|
@ -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");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue