diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_donator.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_donator.java index d8a8dda4..6802c959 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_donator.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_donator.java @@ -54,7 +54,6 @@ public class Command_donator extends FreedomCommand { FUtil.bcastMsg(ChatColor.AQUA + name + ChatColor.GREEN + " has donated to the server!"); } - Player player = getPlayer(name); if (player != null) @@ -79,6 +78,8 @@ public class Command_donator extends FreedomCommand try { FUtil.postRequestToEndpoint(url, "POST", headers, payload); + String result = FUtil.postRequestToEndpoint(url, "POST", headers, payload); + msg(result); } catch (IOException e) { diff --git a/src/main/java/me/totalfreedom/totalfreedommod/discord/PrivateMessageListener.java b/src/main/java/me/totalfreedom/totalfreedommod/discord/PrivateMessageListener.java index 28f2d057..8f127155 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/discord/PrivateMessageListener.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/discord/PrivateMessageListener.java @@ -29,7 +29,6 @@ public class PrivateMessageListener extends ListenerAdapter { Discord.syncRoles(admin, player.getDiscordID()); } - TotalFreedomMod.plugin().pl.save(player); Discord.LINK_CODES.remove(code); } diff --git a/src/main/java/me/totalfreedom/totalfreedommod/player/PlayerData.java b/src/main/java/me/totalfreedom/totalfreedommod/player/PlayerData.java index 43963a76..41868f6d 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/player/PlayerData.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/player/PlayerData.java @@ -104,6 +104,8 @@ public class PlayerData .append("- Total Votes: ").append(totalVotes).append("\n") .append("- Tag: ").append(FUtil.colorize(tag)).append(ChatColor.GRAY).append("\n") .append("- Ride Mode: ").append(rideMode).append("\n") + .append("- Tag: ").append(tag).append("\n") + .append("- Ride Mode: ").append(rideMode) .append("- Backup Codes: ").append(backupCodes.size()).append("/10").append("\n"); return output.toString(); @@ -233,6 +235,7 @@ public class PlayerData put("discord_id", discordID); put("backup_codes", FUtil.listToString(backupCodes)); put("donator", donator); + put("donator", masterBuilder); put("master_builder", masterBuilder); put("verification", verification); put("ride_mode", rideMode);