mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-23 10:39:05 +00:00
Remove attempt to save mail in the data file since mail has been removed
This commit is contained in:
parent
2f4eed804e
commit
c67b1f54c5
@ -164,7 +164,6 @@ public class MineverseChat extends JavaPlugin implements PluginMessageListener {
|
|||||||
|
|
||||||
// Offline data ----------------------------
|
// Offline data ----------------------------
|
||||||
public Map<String, String> mutes = new HashMap<String, String>();
|
public Map<String, String> mutes = new HashMap<String, String>();
|
||||||
public Map<String, List<String>> mail = new HashMap<String, List<String>>();
|
|
||||||
|
|
||||||
private LogLevels curLogLevel;
|
private LogLevels curLogLevel;
|
||||||
|
|
||||||
|
@ -3,9 +3,7 @@ package mineverse.Aust1n46.chat.database;
|
|||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.List;
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import mineverse.Aust1n46.chat.MineverseChat;
|
import mineverse.Aust1n46.chat.MineverseChat;
|
||||||
@ -37,19 +35,6 @@ public class PlayerData {
|
|||||||
|
|
||||||
public static void savePlayerData() {
|
public static void savePlayerData() {
|
||||||
try {
|
try {
|
||||||
List<String> mapmail = new ArrayList<String>(plugin.mail.keySet());
|
|
||||||
for(int a = 0; a < mapmail.size(); a ++) {
|
|
||||||
ConfigurationSection cs = playerData.getConfigurationSection("players." + mapmail.get(a));
|
|
||||||
if(cs == null) {
|
|
||||||
cs = playerData.createSection("players." + mapmail.get(a));
|
|
||||||
}
|
|
||||||
String mail = cs.getString("mail", "");
|
|
||||||
for(String s : plugin.mail.get(mapmail.get(a))) {
|
|
||||||
mail += s + "\n";
|
|
||||||
}
|
|
||||||
cs.set("mail", mail);
|
|
||||||
plugin.mail.remove(mapmail.get(a));
|
|
||||||
}
|
|
||||||
for(MineverseChatPlayer p : MineverseChat.players) {
|
for(MineverseChatPlayer p : MineverseChat.players) {
|
||||||
if(p.wasModified() || p.isOnline()) {
|
if(p.wasModified() || p.isOnline()) {
|
||||||
ConfigurationSection cs = playerData.getConfigurationSection("players." + p.getUUID().toString());
|
ConfigurationSection cs = playerData.getConfigurationSection("players." + p.getUUID().toString());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user