This commit is contained in:
sky 2020-02-23 14:28:45 +08:00
parent edc1ff56c1
commit 66ef982c63
2 changed files with 7 additions and 2 deletions

View File

@ -7,6 +7,7 @@ import org.bukkit.Server;
import org.bukkit.command.Command; import org.bukkit.command.Command;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.generator.ChunkGenerator; import org.bukkit.generator.ChunkGenerator;
import org.bukkit.plugin.Plugin; import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.PluginDescriptionFile; import org.bukkit.plugin.PluginDescriptionFile;
@ -45,7 +46,7 @@ public class InternalPlugin implements Plugin {
@Override @Override
public FileConfiguration getConfig() { public FileConfiguration getConfig() {
return null; return new YamlConfiguration();
} }
@Override @Override

View File

@ -28,7 +28,11 @@ public class TagPlayerData {
} }
public String getTeamHash() { public String getTeamHash() {
return TabooLib.getPlugin().getConfig().getBoolean("TABLIST-SORT") ? String.valueOf(Objects.hash(prefix)) : nameOrigin; try {
return TabooLib.getConfig().getBoolean("TABLIST-SORT") ? String.valueOf(Objects.hash(String.valueOf(prefix))) : nameOrigin;
} catch (Throwable ignore) {
}
return "null";
} }
public TagPlayerData reset() { public TagPlayerData reset() {