Fix Tag
This commit is contained in:
parent
edc1ff56c1
commit
66ef982c63
@ -7,6 +7,7 @@ import org.bukkit.Server;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
import org.bukkit.generator.ChunkGenerator;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
import org.bukkit.plugin.PluginDescriptionFile;
|
||||
@ -45,7 +46,7 @@ public class InternalPlugin implements Plugin {
|
||||
|
||||
@Override
|
||||
public FileConfiguration getConfig() {
|
||||
return null;
|
||||
return new YamlConfiguration();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -28,7 +28,11 @@ public class TagPlayerData {
|
||||
}
|
||||
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user