2 Commits
Author SHA1 Message Date
BuildTools 91290297ea Updated README.MD to add Contribution Instructions 2020-04-09 15:04:27 -05:00
BuildTools d53c299de9 We made it to release 1.0 2020-04-09 14:40:43 -05:00
41 changed files with 280 additions and 51 deletions
+49
View File
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="target/generated-sources/annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
+23
View File
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>PlayrimeRewards+ (Rewritten)</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
+3 -3
View File
@@ -1,9 +1,9 @@
eclipse.preferences.version=1 eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.6 org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
org.eclipse.jdt.core.compiler.processAnnotations=disabled org.eclipse.jdt.core.compiler.processAnnotations=disabled
org.eclipse.jdt.core.compiler.release=disabled org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.6 org.eclipse.jdt.core.compiler.source=1.8
+1 -1
View File
@@ -1,4 +1,4 @@
{ {
"maven.view": "hierarchical", "maven.view": "hierarchical",
"java.configuration.updateBuildConfiguration": "interactive" "java.configuration.updateBuildConfiguration": "automatic"
} }
+10
View File
@@ -2,3 +2,13 @@
### What the hell is this? ### What the hell is this?
Im glad you asked, this plugin will psychologically manipulate your minecraft server players into playing more by providing rewards for high playtime and leaderboard adding a competitive nature to your server... thats basically it... Im glad you asked, this plugin will psychologically manipulate your minecraft server players into playing more by providing rewards for high playtime and leaderboard adding a competitive nature to your server... thats basically it...
### What actually works though?
- Playtime Leaderboard
- User Playtime Command
- Saving and loading data
- Welcome message
- Last Player Seen Command
## What if i want to contribute
Honestly, i dont think its worth it but like i guess you can, just please follow the general idea of the project (Function Casing, Class Casing, File Casing, etc.). Also ALWAYS USE translateAlternateColorCodes, never use ChatColor.COLOR, please, thanks, also the char for translation should always be "&" because its standard for the US keyboard
+1 -1
View File
@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId> <groupId>org.example</groupId>
<artifactId>PlayrimeRewards+ (Rewritten)</artifactId> <artifactId>PlayrimeRewardsRewritten</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<build> <build>
<plugins> <plugins>
@@ -20,6 +20,7 @@ public class CommandPlaytime implements CommandExecutor {
public boolean onCommand(CommandSender sender, Command command, String s, String[] args) { public boolean onCommand(CommandSender sender, Command command, String s, String[] args) {
if(sender instanceof Player){ if(sender instanceof Player){
Player player = (Player) sender; Player player = (Player) sender;
if(player.hasPermission("playtimerewards.pt") || player.hasPermission("playtimerewards.user")) {
if(args.length > 0){ if(args.length > 0){
Player mentioned = Bukkit.getPlayer(args[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 + "&a"+args[0]+"'s current playtime is: &7"+Integer.toString(plugin.db.getPlayer(mentioned.getUniqueId()).getPlaytime()/3600)+" Hours"));
@@ -27,6 +28,9 @@ public class CommandPlaytime implements CommandExecutor {
}else{ }else{
player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix + "&aYour current playtime is: &7"+Integer.toString(plugin.db.getPlayer(player.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+"&c You do not have permission to use this command"));
}
} }
return true; return true;
@@ -22,14 +22,19 @@ public class CommandPlaytimeLeaderboard implements CommandExecutor {
if (sender instanceof Player) { if (sender instanceof Player) {
Player player = (Player) sender; Player player = (Player) sender;
if(player.hasPermission("playtimerewards.ptleader") || player.hasPermission("playtimerewards.user")) {
player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"&8-------- &7Leaderboard &8--------"));
int i = 0; int i = 0;
for (PlayerData pl : plugin.db.getSortedPlayerlist()){ for (PlayerData pl : plugin.db.getSortedPlayerlist()){
if(i<5){ if(i<9){
player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"&a"+pl.getDisplayName()+"&8| "+Integer.toString(pl.getPlaytime()/3600))); if((pl.getPlaytime()/3600) > 0){
player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"&a"+pl.getDisplayName()+"&8 : "+" &7"+Integer.toString(pl.getPlaytime()/3600))+" Hours");
i++; i++;
} }
i++; }
}
}else{
player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"&c You do not have permission to use this command"));
} }
} }
@@ -19,9 +19,13 @@ public class CommandPluginInfo implements CommandExecutor {
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (sender instanceof Player) { if (sender instanceof Player) {
Player player = (Player) sender; Player player = (Player) sender;
if(player.hasPermission("playtimerewards.ptinfo") || player.hasPermission("playtimerewards.user")){
player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"&8[&6Playtime Rewards&7+&8]")); 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+"This plugin was developed by: &aAstrid (O_dude)"));
player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"Current Plugin Version: &70.01a")); player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"Current Plugin Version: &7"+plugin.getDescription().getVersion()));
}else{
player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"&c You do not have permission to use this command"));
}
} }
return true; return true;
@@ -20,14 +20,16 @@ public class CommandSeen implements CommandExecutor {
public boolean onCommand(CommandSender sender, Command command, String s, String[] args) { public boolean onCommand(CommandSender sender, Command command, String s, String[] args) {
if(sender instanceof Player){ if(sender instanceof Player){
Player player = (Player) sender; Player player = (Player) sender;
if(player.hasPermission("playtimerewards.ptseen") || player.hasPermission("playtimerewards.admin")) {
String pName = args[0]; String pName = args[0];
Player mentioned = Bukkit.getPlayer(pName); Player mentioned = Bukkit.getPlayer(pName);
player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"&8--------&7 "+mentioned.getDisplayName()+" &8--------")); player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"&8--------&7 "+mentioned.getDisplayName()+" &8--------"));
player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"&Playtime: &7"+Integer.toString(plugin.db.getPlayer(mentioned.getUniqueId()).getPlaytime()/3600)+" Hours")); 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()))); 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())));
}else{
player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"&c You do not have permission to use this command"));
}
} }
@@ -2,12 +2,16 @@ package dev.astridlabs.playtimerewardsplus.Commands;
import dev.astridlabs.playtimerewardsplus.DataTypes.PlayerData; import dev.astridlabs.playtimerewardsplus.DataTypes.PlayerData;
import dev.astridlabs.playtimerewardsplus.Plugin; import dev.astridlabs.playtimerewardsplus.Plugin;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.command.Command; 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 java.util.List;
import java.util.UUID;
public class Debug implements CommandExecutor { public class Debug implements CommandExecutor {
private Plugin plugin; private Plugin plugin;
private String DebugPrefix = "&7[&cDEBUG MODE&7] "; private String DebugPrefix = "&7[&cDEBUG MODE&7] ";
@@ -20,6 +24,8 @@ public class Debug implements CommandExecutor {
public boolean onCommand(CommandSender sender, Command command, String s, String[] args) { public boolean onCommand(CommandSender sender, Command command, String s, String[] args) {
if(sender instanceof Player){ if(sender instanceof Player){
Player player = (Player) sender; Player player = (Player) sender;
if(!player.hasPermission("playtimerewards.debug")) player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+"&c You do not have permission to use this command"));
if(args[0].equals("time")){ if(args[0].equals("time")){
player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+DebugPrefix + "&aUser playtime in seconds is: "+this.plugin.db.getPlayer(player.getUniqueId()).getPlaytime())); player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+DebugPrefix + "&aUser playtime in seconds is: "+this.plugin.db.getPlayer(player.getUniqueId()).getPlaytime()));
} }
@@ -35,6 +41,18 @@ public class Debug implements CommandExecutor {
plugin.config.savePlayers(); plugin.config.savePlayers();
} }
if(args[0].equals("rawdata")){
List<PlayerData> playerDataList = plugin.db.getSortedPlayerlist();
player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+DebugPrefix + "&aPlayer UUID: &7"+ player.getUniqueId()));
for(PlayerData p : playerDataList){
if(player.getUniqueId().toString().equals(p.getUuid().toString())){//FIXME: This is never called, meaning somehow the UUID's are not compatable with eachother
player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+DebugPrefix + "&aYou are in the Database!"));
}
player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+DebugPrefix + "&aPlayer UUID: &7"+ p.getUuid()));
}
}
} }
return true; return true;
@@ -7,6 +7,7 @@ import org.bukkit.Bukkit;
import org.bukkit.configuration.InvalidConfigurationException; import org.bukkit.configuration.InvalidConfigurationException;
import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.Player;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
@@ -29,12 +30,17 @@ public class ConfigController {
public void savePlayers(){ public void savePlayers(){
for (PlayerData player : plugin.db.playerList) { for (PlayerData player : plugin.db.playerList) {
if(player.getCurrentLocation() == null){
customConfig.set("data."+player.getUuid()+".playtime", player.getPlaytime());
customConfig.set("data."+player.getUuid()+".displayName", player.getDisplayName());
}else{
customConfig.set("data."+player.getUuid()+".playtime", player.getPlaytime()); customConfig.set("data."+player.getUuid()+".playtime", player.getPlaytime());
customConfig.set("data."+player.getUuid()+".displayName", player.getDisplayName()); customConfig.set("data."+player.getUuid()+".displayName", player.getDisplayName());
customConfig.set("data."+player.getUuid()+".lastLocation.X", player.getCurrentLocation().getBlockX()); customConfig.set("data."+player.getUuid()+".lastLocation.X", player.getCurrentLocation().getBlockX());
customConfig.set("data."+player.getUuid()+".lastLocation.Y", player.getCurrentLocation().getBlockY()); customConfig.set("data."+player.getUuid()+".lastLocation.Y", player.getCurrentLocation().getBlockY());
customConfig.set("data."+player.getUuid()+".lastLocation.Z", player.getCurrentLocation().getBlockZ()); customConfig.set("data."+player.getUuid()+".lastLocation.Z", player.getCurrentLocation().getBlockZ());
} }
}
try { try {
customConfig.save(customConfigFile); customConfig.save(customConfigFile);
} catch (IOException e) { } catch (IOException e) {
@@ -61,7 +67,30 @@ public class ConfigController {
} }
public List<PlayerData> getPlayersFromConfig(){
List<PlayerData> returnList = new ArrayList<PlayerData>();
if (!customConfig.getConfigurationSection("data").getKeys(false).isEmpty()) {
customConfig.getConfigurationSection("data").getKeys(false).forEach(str -> {
plugin.db.CreatePlayerRaw(new PlayerData(UUID.fromString(str), customConfig.getString("data."+str+".displayName"), customConfig.getInt("data."+str+".playtime")));
});
}
return returnList;
}
public String getWelcomeBackMessage(Player player){
return customConfig.getString("Config.WelcomeMessage.WelcomeBackMessage").replace("%player%", player.getDisplayName());
}
public String getFirstTimeWelcomeMessage(Player player){
return customConfig.getString("Config.WelcomeMessage.FirstTimeWelcomeMessage").replace("%player%", player.getDisplayName());
}
public boolean isWelcomeMesageEnabled(){
return customConfig.getBoolean("Config.WelcomeMessage.Override");
}
public List<Reward> getRewards(){ public List<Reward> getRewards(){
List<Reward> returnList = new ArrayList<Reward>(); List<Reward> returnList = new ArrayList<Reward>();
@@ -26,13 +26,19 @@ public class PlayerDatabase {
PlayerData returnedPlayer = null; PlayerData returnedPlayer = null;
for (PlayerData player : playerList) { for (PlayerData player : playerList) {
if(player.getUuid() == uuid){ if(player.getUuid().toString().equals(uuid.toString())){
returnedPlayer = player; returnedPlayer = player;
} }
} }
return returnedPlayer; return returnedPlayer;
} }
public void loadPlayers(){
for(PlayerData player : plugin.config.getPlayersFromConfig()){
playerList.add(player);
}
}
class Sortbyroll implements Comparator<PlayerData> class Sortbyroll implements Comparator<PlayerData>
{ {
// Used for sorting in ascending order of // Used for sorting in ascending order of
@@ -71,10 +77,27 @@ public class PlayerDatabase {
player.setLastLocation(lastLocation); player.setLastLocation(lastLocation);
} }
public boolean playerExists(UUID uuid){
boolean returnState = false;
public PlayerData createPlayer(Player player){ for (PlayerData player : playerList) {
playerList.add(new PlayerData(player.getUniqueId(), player.getDisplayName())); if(player.getUuid().toString().equals(uuid.toString())){
return getPlayer(player.getUniqueId()); returnState = true;
}
}
return returnState;
}
public void createPlayer(Player player){
if(playerExists(player.getUniqueId()) == false){
playerList.add(new PlayerData(player.getUniqueId(), player.getDisplayName(), 0));
}
return;
}
public void CreatePlayerRaw(PlayerData playerData){
playerList.add(playerData);
} }
} }
@@ -1,7 +1,9 @@
package dev.astridlabs.playtimerewardsplus.Events; package dev.astridlabs.playtimerewardsplus.Events;
import dev.astridlabs.playtimerewardsplus.Plugin; import dev.astridlabs.playtimerewardsplus.Plugin;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener; import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.event.player.PlayerJoinEvent;
@@ -17,7 +19,13 @@ public class PlayerJoin implements Listener {
@EventHandler @EventHandler
public void onPlayerJoin(PlayerJoinEvent event) public void onPlayerJoin(PlayerJoinEvent event)
{ {
event.setJoinMessage("Welcome, " + event.getPlayer().getName() + "!"); if(plugin.config.isWelcomeMesageEnabled()){
if(plugin.db.playerExists(event.getPlayer().getUniqueId())){
event.setJoinMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+plugin.config.getWelcomeBackMessage(event.getPlayer())));
}else{
event.setJoinMessage(ChatColor.translateAlternateColorCodes('&', plugin.PluginChatPrefix+plugin.config.getFirstTimeWelcomeMessage(event.getPlayer())));
}
}
plugin.db.createPlayer(event.getPlayer()); plugin.db.createPlayer(event.getPlayer());
} }
} }
@@ -1,7 +1,6 @@
package dev.astridlabs.playtimerewardsplus; package dev.astridlabs.playtimerewardsplus;
import dev.astridlabs.playtimerewardsplus.DataTypes.PlayerData; import dev.astridlabs.playtimerewardsplus.DataTypes.PlayerData;
import dev.astridlabs.playtimerewardsplus.Plugin;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.scheduler.BukkitRunnable; import org.bukkit.scheduler.BukkitRunnable;
@@ -39,6 +39,8 @@ public class Plugin extends JavaPlugin {
} }
//FIXME: This does not actually load the players
db.loadPlayers();
PlaceholderChatPrefix = getConfig().getString("Config.PlaceholderChatPrefix")+" "; PlaceholderChatPrefix = getConfig().getString("Config.PlaceholderChatPrefix")+" ";
PluginChatPrefix = getConfig().getString("Config.PluginChatPrefix")+" "; PluginChatPrefix = getConfig().getString("Config.PluginChatPrefix")+" ";
@@ -14,7 +14,7 @@ import java.util.UUID;
public class PlayerData { public class PlayerData {
private int Playtime = 0; private int Playtime;
private UUID uuid; private UUID uuid;
private String DisplayName; private String DisplayName;
@@ -23,9 +23,10 @@ public class PlayerData {
private List<String> RepetitiveUnlocks = new ArrayList<String>(); private List<String> RepetitiveUnlocks = new ArrayList<String>();
public PlayerData(UUID uuid, String DisplayName){ public PlayerData(UUID uuid, String DisplayName, Integer playtime){
this.uuid = uuid; this.uuid = uuid;
this.DisplayName = DisplayName; this.DisplayName = DisplayName;
this.Playtime = playtime;
} }
+10 -1
View File
@@ -1,6 +1,15 @@
Config: Config:
PluginChatPrefix: "&7[&6PTRR+&7]" PluginChatPrefix: "&7[&6PTRR+&7]"
PlaceholderChatPrefix: "&8[%time%&8]&f" PlaceholderChatPrefix: "&8[%time%&8]&f"
WelcomeMessage:
Override: true
FirstTimeWelcomeMessage: "&aWelcome to the server, %player%"
WelcomeBackMessage: "&aWelcome back, %player%"
rewards: {}
#NEVER TOUCH THIS EVER
data: {} data: {}
rewards:
+2 -2
View File
@@ -1,7 +1,7 @@
main: dev.astridlabs.playtimerewardsplus.Plugin main: dev.astridlabs.playtimerewardsplus.Plugin
name: PlaytimeRewardsRewrittenPlus name: PlaytimeRewardsRewrittenPlus
author: Astrid (O_dude) author: Astrid (O_dude)
version: 0.1a version: 1.0b
commands: commands:
pt: pt:
@@ -20,4 +20,4 @@ commands:
description: Get current top 5 leaderboard description: Get current top 5 leaderboard
usage: /ptleader usage: /ptleader
softdepend: [PlaceholderAPI] # This is used, if your plugin works without PlaceholderAPI. softdepend: [PlaceholderAPI]
Binary file not shown.
+10 -1
View File
@@ -1,6 +1,15 @@
Config: Config:
PluginChatPrefix: "&7[&6PTRR+&7]" PluginChatPrefix: "&7[&6PTRR+&7]"
PlaceholderChatPrefix: "&8[%time%&8]&f" PlaceholderChatPrefix: "&8[%time%&8]&f"
WelcomeMessage:
Override: true
FirstTimeWelcomeMessage: "&aWelcome to the server, %player%"
WelcomeBackMessage: "&aWelcome back, %player%"
rewards: {}
#NEVER TOUCH THIS EVER
data: {} data: {}
rewards:
+2 -2
View File
@@ -1,7 +1,7 @@
main: dev.astridlabs.playtimerewardsplus.Plugin main: dev.astridlabs.playtimerewardsplus.Plugin
name: PlaytimeRewardsRewrittenPlus name: PlaytimeRewardsRewrittenPlus
author: Astrid (O_dude) author: Astrid (O_dude)
version: 0.1a version: 1.0b
commands: commands:
pt: pt:
@@ -20,4 +20,4 @@ commands:
description: Get current top 5 leaderboard description: Get current top 5 leaderboard
usage: /ptleader usage: /ptleader
softdepend: [PlaceholderAPI] # This is used, if your plugin works without PlaceholderAPI. softdepend: [PlaceholderAPI]
+5
View File
@@ -0,0 +1,5 @@
#Generated by Maven
#Thu Apr 09 14:34:44 CDT 2020
groupId=org.example
artifactId=PlayrimeRewardsRewritten
version=1.0-SNAPSHOT
@@ -0,0 +1,15 @@
dev/astridlabs/playtimerewardsplus/Commands/CommandPluginInfo.class
dev/astridlabs/playtimerewardsplus/Integrations/PlaceholderAPIIntegration.class
dev/astridlabs/playtimerewardsplus/Commands/CommandPlaytime.class
dev/astridlabs/playtimerewardsplus/Events/PlayerJoin.class
dev/astridlabs/playtimerewardsplus/DataTypes/Reward.class
dev/astridlabs/playtimerewardsplus/DataTypes/PlayerData.class
dev/astridlabs/playtimerewardsplus/Controllers/PlayerDatabase$Sortbyroll.class
dev/astridlabs/playtimerewardsplus/Commands/CommandPlaytimeLeaderboard.class
dev/astridlabs/playtimerewardsplus/Controllers/ConfigController.class
dev/astridlabs/playtimerewardsplus/Commands/Debug.class
dev/astridlabs/playtimerewardsplus/Controllers/RewardManager.class
dev/astridlabs/playtimerewardsplus/Commands/CommandSeen.class
dev/astridlabs/playtimerewardsplus/Plugin.class
dev/astridlabs/playtimerewardsplus/MasterClock.class
dev/astridlabs/playtimerewardsplus/Controllers/PlayerDatabase.class
@@ -0,0 +1,14 @@
/Users/owen/IdeaProjects/PlayrimeRewards+ (Rewritten)/src/main/java/dev/astridlabs/playtimerewardsplus/Controllers/ConfigController.java
/Users/owen/IdeaProjects/PlayrimeRewards+ (Rewritten)/src/main/java/dev/astridlabs/playtimerewardsplus/Controllers/RewardManager.java
/Users/owen/IdeaProjects/PlayrimeRewards+ (Rewritten)/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/CommandPlaytimeLeaderboard.java
/Users/owen/IdeaProjects/PlayrimeRewards+ (Rewritten)/src/main/java/dev/astridlabs/playtimerewardsplus/MasterClock.java
/Users/owen/IdeaProjects/PlayrimeRewards+ (Rewritten)/src/main/java/dev/astridlabs/playtimerewardsplus/DataTypes/Reward.java
/Users/owen/IdeaProjects/PlayrimeRewards+ (Rewritten)/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/Debug.java
/Users/owen/IdeaProjects/PlayrimeRewards+ (Rewritten)/src/main/java/dev/astridlabs/playtimerewardsplus/DataTypes/PlayerData.java
/Users/owen/IdeaProjects/PlayrimeRewards+ (Rewritten)/src/main/java/dev/astridlabs/playtimerewardsplus/Integrations/PlaceholderAPIIntegration.java
/Users/owen/IdeaProjects/PlayrimeRewards+ (Rewritten)/src/main/java/dev/astridlabs/playtimerewardsplus/Controllers/PlayerDatabase.java
/Users/owen/IdeaProjects/PlayrimeRewards+ (Rewritten)/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/CommandPluginInfo.java
/Users/owen/IdeaProjects/PlayrimeRewards+ (Rewritten)/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/CommandPlaytime.java
/Users/owen/IdeaProjects/PlayrimeRewards+ (Rewritten)/src/main/java/dev/astridlabs/playtimerewardsplus/Commands/CommandSeen.java
/Users/owen/IdeaProjects/PlayrimeRewards+ (Rewritten)/src/main/java/dev/astridlabs/playtimerewardsplus/Plugin.java
/Users/owen/IdeaProjects/PlayrimeRewards+ (Rewritten)/src/main/java/dev/astridlabs/playtimerewardsplus/Events/PlayerJoin.java