diff --git a/.idea/misc.xml b/.idea/misc.xml index 4b661a5..362d049 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -8,7 +8,7 @@ - + \ No newline at end of file diff --git a/.settings/org.eclipse.jdt.apt.core.prefs b/.settings/org.eclipse.jdt.apt.core.prefs new file mode 100644 index 0000000..d4313d4 --- /dev/null +++ b/.settings/org.eclipse.jdt.apt.core.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.apt.aptEnabled=false diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..3fc7e86 --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,9 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore +org.eclipse.jdt.core.compiler.processAnnotations=disabled +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/.settings/org.eclipse.m2e.core.prefs b/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..2b52057 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "maven.view": "hierarchical", + "java.configuration.updateBuildConfiguration": "interactive" +} \ No newline at end of file diff --git a/out/artifacts/PlayrimeRewards___Rewritten__jar/.DS_Store b/out/artifacts/PlayrimeRewards___Rewritten__jar/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/out/artifacts/PlayrimeRewards___Rewritten__jar/.DS_Store differ diff --git a/pom.xml b/pom.xml index 93a7be0..1e74694 100644 --- a/pom.xml +++ b/pom.xml @@ -13,8 +13,8 @@ org.apache.maven.plugins maven-compiler-plugin - 6 - 6 + 8 + 8 diff --git a/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/CommandPlaytime.java b/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/CommandPlaytime.java index 2775139..ff2fd28 100644 --- a/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/CommandPlaytime.java +++ b/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/CommandPlaytime.java @@ -2,6 +2,7 @@ package dev.astridlabs.playtimerewardsplus.Commands; import dev.astridlabs.playtimerewardsplus.DataTypes.PlayerData; import dev.astridlabs.playtimerewardsplus.Plugin; +import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; @@ -16,11 +17,16 @@ public class CommandPlaytime implements CommandExecutor { } @Override - public boolean onCommand(CommandSender sender, Command command, String s, String[] strings) { + public boolean onCommand(CommandSender sender, Command command, String s, String[] args) { if(sender instanceof Player){ Player player = (Player) sender; + if(args.length > 0){ + Player mentioned = Bukkit.getPlayer(args[0]); + player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix + "&a"+args[0]+"'s current playtime is: &7"+Integer.toString(plugin.db.getPlayer(mentioned.getUniqueId()).getPlaytime()/3600)+" Hours")); - player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix + "&aYour current playtime is: &7"+Integer.toString(plugin.db.getPlayer(player.getUniqueId()).getPlaytime()/3600)+" Hours")); + }else{ + player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix + "&aYour current playtime is: &7"+Integer.toString(plugin.db.getPlayer(player.getUniqueId()).getPlaytime()/3600)+" Hours")); + } } return true; diff --git a/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/CommandPlaytimeLeaderboard.java b/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/CommandPlaytimeLeaderboard.java new file mode 100644 index 0000000..7601e8b --- /dev/null +++ b/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/CommandPlaytimeLeaderboard.java @@ -0,0 +1,38 @@ +package dev.astridlabs.playtimerewardsplus.Commands; + +import dev.astridlabs.playtimerewardsplus.DataTypes.PlayerData; +import dev.astridlabs.playtimerewardsplus.Plugin; +import org.bukkit.ChatColor; +import org.bukkit.command.Command; +import org.bukkit.command.CommandExecutor; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.Player; + +import java.util.Iterator; +import java.util.List; + +public class CommandPlaytimeLeaderboard implements CommandExecutor { + + private Plugin plugin; + + public CommandPlaytimeLeaderboard(Plugin plugin){ + this.plugin = plugin; + } + public boolean onCommand(CommandSender sender, Command command, String label, String[] args){ + + if (sender instanceof Player) { + Player player = (Player) sender; + + int i = 0; + for (PlayerData pl : plugin.db.getSortedPlayerlist()){ + if(i<5){ + player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"&a"+pl.getDisplayName()+"&8| "+Integer.toString(pl.getPlaytime()/3600))); + i++; + } + i++; + } + } + + return true; + } +} \ No newline at end of file diff --git a/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/CommandPluginInfo.java b/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/CommandPluginInfo.java new file mode 100644 index 0000000..194a4d1 --- /dev/null +++ b/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/CommandPluginInfo.java @@ -0,0 +1,29 @@ +package dev.astridlabs.playtimerewardsplus.Commands; + +import dev.astridlabs.playtimerewardsplus.Plugin; +import org.bukkit.ChatColor; +import org.bukkit.command.Command; +import org.bukkit.command.CommandExecutor; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.Player; + +public class CommandPluginInfo implements CommandExecutor { + + private Plugin plugin; + + public CommandPluginInfo(Plugin plugin){ + this.plugin = plugin; + } + // This method is called, when somebody uses our command + @Override + public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { + if (sender instanceof Player) { + Player player = (Player) sender; + player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"&8[&6Playtime Rewards&7+&8]")); + player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"This plugin was developed by: &aAstrid (O_dude)")); + player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"Current Plugin Version: &70.01a")); + } + + return true; + } +} \ No newline at end of file diff --git a/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/CommandSeen.java b/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/CommandSeen.java index 35a3491..d47b807 100644 --- a/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/CommandSeen.java +++ b/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/CommandSeen.java @@ -25,8 +25,8 @@ public class CommandSeen implements CommandExecutor { Player mentioned = Bukkit.getPlayer(pName); player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"&8--------&7 "+mentioned.getDisplayName()+" &8--------")); - player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"&aPlayers Playtime: &7"+Integer.toString(plugin.db.getPlayer(mentioned.getUniqueId()).getPlaytime()/3600)+" Hours")); - player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"&aPlayers Logoff Location (X,Y,Z): &7"+plugin.config.getSavedX(mentioned.getUniqueId())+" "+plugin.config.getSavedY(mentioned.getUniqueId())+" "+plugin.config.getSavedZ(mentioned.getUniqueId()))); + player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"&Playtime: &7"+Integer.toString(plugin.db.getPlayer(mentioned.getUniqueId()).getPlaytime()/3600)+" Hours")); + player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"&aLogoff Location (X,Y,Z): &7"+plugin.config.getSavedX(mentioned.getUniqueId())+" "+plugin.config.getSavedY(mentioned.getUniqueId())+" "+plugin.config.getSavedZ(mentioned.getUniqueId()))); } diff --git a/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/Debug.java b/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/Debug.java index f7a5340..60c4680 100644 --- a/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/Debug.java +++ b/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/Debug.java @@ -30,7 +30,7 @@ public class Debug implements CommandExecutor { } - if(args[0].equals("location")){ + if(args[0].equals("save")){ player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+DebugPrefix + "&aForce dumping memory to disk, this could cause file corruption")); plugin.config.savePlayers(); diff --git a/src/main/java/dev/astridlabs/playtimerewardsplus/Controllers/ConfigController.java b/src/main/java/dev/astridlabs/playtimerewardsplus/Controllers/ConfigController.java index 58b9dbe..727a02a 100644 --- a/src/main/java/dev/astridlabs/playtimerewardsplus/Controllers/ConfigController.java +++ b/src/main/java/dev/astridlabs/playtimerewardsplus/Controllers/ConfigController.java @@ -1,14 +1,19 @@ package dev.astridlabs.playtimerewardsplus.Controllers; import dev.astridlabs.playtimerewardsplus.DataTypes.PlayerData; +import dev.astridlabs.playtimerewardsplus.DataTypes.Reward; import dev.astridlabs.playtimerewardsplus.Plugin; +import org.bukkit.Bukkit; import org.bukkit.configuration.InvalidConfigurationException; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.configuration.file.YamlConfiguration; import java.io.File; import java.io.IOException; +import java.util.ArrayList; +import java.util.List; import java.util.UUID; +import java.util.function.Consumer; import java.util.logging.Level; public class ConfigController { @@ -56,13 +61,26 @@ public class ConfigController { } + + + public List getRewards(){ + List returnList = new ArrayList(); + if (!customConfig.getConfigurationSection("rewards").getKeys(false).isEmpty()) { + customConfig.getConfigurationSection("rewards").getKeys(false).forEach((str) -> { + returnList.add(new Reward(Integer.parseInt(str), customConfig.getBoolean("rewards." + str + ".doesRepeat"), customConfig.getString("rewards." + str + ".message"), customConfig.getStringList("rewards." + str + ".commands"))); + }); + } + + return returnList; + } + public String getSavedX(UUID uuid){ - return this.customConfig.getString("data."+uuid.toString()+"lastLocation.X"); + return this.customConfig.getString("data."+uuid.toString()+".lastLocation.X"); } public String getSavedY(UUID uuid){ - return this.customConfig.getString("data."+uuid.toString()+"lastLocation.Y"); + return this.customConfig.getString("data."+uuid.toString()+".lastLocation.Y"); } public String getSavedZ(UUID uuid){ - return this.customConfig.getString("data."+uuid.toString()+"lastLocation.Z"); + return this.customConfig.getString("data."+uuid.toString()+".lastLocation.Z"); } } diff --git a/src/main/java/dev/astridlabs/playtimerewardsplus/Controllers/PlayerDatabase.java b/src/main/java/dev/astridlabs/playtimerewardsplus/Controllers/PlayerDatabase.java index 2447555..157f308 100644 --- a/src/main/java/dev/astridlabs/playtimerewardsplus/Controllers/PlayerDatabase.java +++ b/src/main/java/dev/astridlabs/playtimerewardsplus/Controllers/PlayerDatabase.java @@ -10,9 +10,7 @@ import dev.astridlabs.playtimerewardsplus.Plugin; import org.bukkit.Location; import org.bukkit.entity.Player; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; +import java.util.*; public class PlayerDatabase { @@ -35,6 +33,26 @@ public class PlayerDatabase { return returnedPlayer; } + class Sortbyroll implements Comparator + { + // Used for sorting in ascending order of + // roll number + public int compare(PlayerData a, PlayerData b) + { + return b.getPlaytime() - a.getPlaytime(); + } + } + + public List getSortedPlayerlist(){ + List sorted = new ArrayList(); + + sorted.addAll(playerList); + Collections.sort(sorted, new Sortbyroll()); + + return sorted; + + } + public void updatePlayerDisplayName(UUID uuid, String displayName){ PlayerData player = getPlayer(uuid); diff --git a/src/main/java/dev/astridlabs/playtimerewardsplus/Controllers/RewardManager.java b/src/main/java/dev/astridlabs/playtimerewardsplus/Controllers/RewardManager.java new file mode 100644 index 0000000..a68a2d0 --- /dev/null +++ b/src/main/java/dev/astridlabs/playtimerewardsplus/Controllers/RewardManager.java @@ -0,0 +1,57 @@ +package dev.astridlabs.playtimerewardsplus.Controllers; + +import dev.astridlabs.playtimerewardsplus.DataTypes.PlayerData; +import dev.astridlabs.playtimerewardsplus.DataTypes.Reward; +import dev.astridlabs.playtimerewardsplus.Plugin; +import org.bukkit.Bukkit; +import org.bukkit.ChatColor; +import org.bukkit.command.ConsoleCommandSender; +import org.bukkit.entity.Player; + +import java.util.ArrayList; +import java.util.List; + +public class RewardManager { + private List rewards = new ArrayList(); + private Plugin plugin; + + public RewardManager(Plugin plugin){ + this.plugin = plugin; + } + + public void unlockRewards(Player player, String chatPrefix){ + for (int i = 0; i < rewards.size(); i++) { + Reward reward = rewards.get(i); + PlayerData pd = plugin.db.getPlayer(player.getUniqueId()); + if(reward.DoesRepeat == true){ + if((pd.getPlaytime()/reward.TimeRequred)>1){ + //Put Unlock Code Here + player.sendMessage(ChatColor.translateAlternateColorCodes('&', chatPrefix+reward.UnlockMessage)); + + for (int b = 0; b < reward.Commands.size(); b++) { + String rewardCommand = reward.Commands.get(b); + + ConsoleCommandSender console = Bukkit.getServer().getConsoleSender(); + Bukkit.dispatchCommand(console, rewardCommand.replace("%PLAYER%", player.getDisplayName())); + } + } + }else if(reward.DoesRepeat == false){ + if(pd.getPlaytime() == reward.TimeRequred){ + //Put Unlock Code Here + player.sendMessage(ChatColor.translateAlternateColorCodes('&', chatPrefix+reward.UnlockMessage)); + + for (int b = 0; b < reward.Commands.size(); b++) { + String rewardCommand = reward.Commands.get(b); + + ConsoleCommandSender console = Bukkit.getServer().getConsoleSender(); + Bukkit.dispatchCommand(console, rewardCommand.replace("%PLAYER%", player.getDisplayName())); + } + } + } + } + } + + public void loadRewards(){ + this.rewards = plugin.config.getRewards(); + } +} diff --git a/src/main/java/dev/astridlabs/playtimerewardsplus/Plugin.java b/src/main/java/dev/astridlabs/playtimerewardsplus/Plugin.java index 66b735b..c57d5bf 100644 --- a/src/main/java/dev/astridlabs/playtimerewardsplus/Plugin.java +++ b/src/main/java/dev/astridlabs/playtimerewardsplus/Plugin.java @@ -1,8 +1,6 @@ package dev.astridlabs.playtimerewardsplus; -import dev.astridlabs.playtimerewardsplus.Commands.CommandPlaytime; -import dev.astridlabs.playtimerewardsplus.Commands.CommandSeen; -import dev.astridlabs.playtimerewardsplus.Commands.Debug; +import dev.astridlabs.playtimerewardsplus.Commands.*; import dev.astridlabs.playtimerewardsplus.Controllers.ConfigController; import dev.astridlabs.playtimerewardsplus.Controllers.PlayerDatabase; import dev.astridlabs.playtimerewardsplus.Events.PlayerJoin; @@ -56,6 +54,8 @@ public class Plugin extends JavaPlugin { this.getCommand("pt").setExecutor(new CommandPlaytime(this)); this.getCommand("ptdebug").setExecutor(new Debug(this)); this.getCommand("ptseen").setExecutor(new CommandSeen(this)); + this.getCommand("ptleader").setExecutor(new CommandPlaytimeLeaderboard(this)); + this.getCommand("ptinfo").setExecutor(new CommandPluginInfo(this)); } diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index cab13e8..9bb45d4 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -2,4 +2,5 @@ Config: PluginChatPrefix: "&7[&6PTRR+&7]" PlaceholderChatPrefix: "&8[%time%&8]&f" -data: {} \ No newline at end of file +data: {} +rewards: \ No newline at end of file diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 46b430a..103a119 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -13,5 +13,11 @@ commands: ptseen: description: Get information about a player usage: /ptseen + ptinfo: + description: Get information about the plugin + usage: /ptinfo + ptleader: + description: Get current top 5 leaderboard + usage: /ptleader softdepend: [PlaceholderAPI] # This is used, if your plugin works without PlaceholderAPI. diff --git a/target/classes/config.yml b/target/classes/config.yml new file mode 100644 index 0000000..9bb45d4 --- /dev/null +++ b/target/classes/config.yml @@ -0,0 +1,6 @@ +Config: + PluginChatPrefix: "&7[&6PTRR+&7]" + PlaceholderChatPrefix: "&8[%time%&8]&f" + +data: {} +rewards: \ No newline at end of file diff --git a/target/classes/dev/astridlabs/playtimerewardsplus/Commands/CommandPlaytime.class b/target/classes/dev/astridlabs/playtimerewardsplus/Commands/CommandPlaytime.class new file mode 100644 index 0000000..a5869db Binary files /dev/null and b/target/classes/dev/astridlabs/playtimerewardsplus/Commands/CommandPlaytime.class differ diff --git a/target/classes/dev/astridlabs/playtimerewardsplus/Commands/CommandPlaytimeLeaderboard.class b/target/classes/dev/astridlabs/playtimerewardsplus/Commands/CommandPlaytimeLeaderboard.class new file mode 100644 index 0000000..fd472f5 Binary files /dev/null and b/target/classes/dev/astridlabs/playtimerewardsplus/Commands/CommandPlaytimeLeaderboard.class differ diff --git a/target/classes/dev/astridlabs/playtimerewardsplus/Commands/CommandPluginInfo.class b/target/classes/dev/astridlabs/playtimerewardsplus/Commands/CommandPluginInfo.class new file mode 100644 index 0000000..fda501e Binary files /dev/null and b/target/classes/dev/astridlabs/playtimerewardsplus/Commands/CommandPluginInfo.class differ diff --git a/target/classes/dev/astridlabs/playtimerewardsplus/Commands/CommandSeen.class b/target/classes/dev/astridlabs/playtimerewardsplus/Commands/CommandSeen.class new file mode 100644 index 0000000..3f344ce Binary files /dev/null and b/target/classes/dev/astridlabs/playtimerewardsplus/Commands/CommandSeen.class differ diff --git a/target/classes/dev/astridlabs/playtimerewardsplus/Commands/Debug.class b/target/classes/dev/astridlabs/playtimerewardsplus/Commands/Debug.class new file mode 100644 index 0000000..5d333e6 Binary files /dev/null and b/target/classes/dev/astridlabs/playtimerewardsplus/Commands/Debug.class differ diff --git a/target/classes/dev/astridlabs/playtimerewardsplus/Controllers/ConfigController.class b/target/classes/dev/astridlabs/playtimerewardsplus/Controllers/ConfigController.class new file mode 100644 index 0000000..28a1e8b Binary files /dev/null and b/target/classes/dev/astridlabs/playtimerewardsplus/Controllers/ConfigController.class differ diff --git a/target/classes/dev/astridlabs/playtimerewardsplus/Controllers/PlayerDatabase$Sortbyroll.class b/target/classes/dev/astridlabs/playtimerewardsplus/Controllers/PlayerDatabase$Sortbyroll.class new file mode 100644 index 0000000..2b70770 Binary files /dev/null and b/target/classes/dev/astridlabs/playtimerewardsplus/Controllers/PlayerDatabase$Sortbyroll.class differ diff --git a/target/classes/dev/astridlabs/playtimerewardsplus/Controllers/PlayerDatabase.class b/target/classes/dev/astridlabs/playtimerewardsplus/Controllers/PlayerDatabase.class new file mode 100644 index 0000000..2601fba Binary files /dev/null and b/target/classes/dev/astridlabs/playtimerewardsplus/Controllers/PlayerDatabase.class differ diff --git a/target/classes/dev/astridlabs/playtimerewardsplus/Controllers/RewardManager.class b/target/classes/dev/astridlabs/playtimerewardsplus/Controllers/RewardManager.class new file mode 100644 index 0000000..330ec1a Binary files /dev/null and b/target/classes/dev/astridlabs/playtimerewardsplus/Controllers/RewardManager.class differ diff --git a/target/classes/dev/astridlabs/playtimerewardsplus/DataTypes/PlayerData.class b/target/classes/dev/astridlabs/playtimerewardsplus/DataTypes/PlayerData.class new file mode 100644 index 0000000..99e56bd Binary files /dev/null and b/target/classes/dev/astridlabs/playtimerewardsplus/DataTypes/PlayerData.class differ diff --git a/target/classes/dev/astridlabs/playtimerewardsplus/DataTypes/Reward.class b/target/classes/dev/astridlabs/playtimerewardsplus/DataTypes/Reward.class new file mode 100644 index 0000000..f34b72c Binary files /dev/null and b/target/classes/dev/astridlabs/playtimerewardsplus/DataTypes/Reward.class differ diff --git a/target/classes/dev/astridlabs/playtimerewardsplus/Events/PlayerJoin.class b/target/classes/dev/astridlabs/playtimerewardsplus/Events/PlayerJoin.class new file mode 100644 index 0000000..204ff13 Binary files /dev/null and b/target/classes/dev/astridlabs/playtimerewardsplus/Events/PlayerJoin.class differ diff --git a/target/classes/dev/astridlabs/playtimerewardsplus/Integrations/PlaceholderAPIIntegration.class b/target/classes/dev/astridlabs/playtimerewardsplus/Integrations/PlaceholderAPIIntegration.class new file mode 100644 index 0000000..3168bbd Binary files /dev/null and b/target/classes/dev/astridlabs/playtimerewardsplus/Integrations/PlaceholderAPIIntegration.class differ diff --git a/target/classes/dev/astridlabs/playtimerewardsplus/MasterClock.class b/target/classes/dev/astridlabs/playtimerewardsplus/MasterClock.class new file mode 100644 index 0000000..c7667e4 Binary files /dev/null and b/target/classes/dev/astridlabs/playtimerewardsplus/MasterClock.class differ diff --git a/target/classes/dev/astridlabs/playtimerewardsplus/Plugin.class b/target/classes/dev/astridlabs/playtimerewardsplus/Plugin.class new file mode 100644 index 0000000..70b667c Binary files /dev/null and b/target/classes/dev/astridlabs/playtimerewardsplus/Plugin.class differ diff --git a/target/classes/plugin.yml b/target/classes/plugin.yml new file mode 100644 index 0000000..103a119 --- /dev/null +++ b/target/classes/plugin.yml @@ -0,0 +1,23 @@ +main: dev.astridlabs.playtimerewardsplus.Plugin +name: PlaytimeRewardsRewrittenPlus +author: Astrid (O_dude) +version: 0.1a + +commands: + pt: + description: This command shows your current playtime + usage: /pt + ptdebug: + description: This is a debug command for debugging stuff + usage: /ptdebug + ptseen: + description: Get information about a player + usage: /ptseen + ptinfo: + description: Get information about the plugin + usage: /ptinfo + ptleader: + description: Get current top 5 leaderboard + usage: /ptleader + +softdepend: [PlaceholderAPI] # This is used, if your plugin works without PlaceholderAPI.