2.2.0-1.20.4
将生命方块由玩家头换为其他原版多颜色方块
This commit is contained in:
@@ -52,7 +52,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
* <p>皮肤缓存默认保留7天,过期后自动重新获取。</p>
|
||||
*
|
||||
* @author xiaobai
|
||||
* @version 2.1.0
|
||||
* @version 2.2.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public class SkinManager {
|
||||
@@ -97,7 +97,7 @@ public class SkinManager {
|
||||
plugin.logInfo("开始加载皮肤: " + player.getName());
|
||||
|
||||
String skinBase64 = null;
|
||||
String skinSource = plugin.getConfigManager().getSkinSource();
|
||||
String skinSource = "skinsrestorer"; // 使用默认值,因为配置已移除
|
||||
|
||||
// 根据配置的皮肤来源优先级获取皮肤
|
||||
if ("skinsrestorer".equalsIgnoreCase(skinSource)) {
|
||||
@@ -110,7 +110,7 @@ public class SkinManager {
|
||||
} else if ("player_profile".equalsIgnoreCase(skinSource)) {
|
||||
// 优先尝试PlayerProfile
|
||||
skinBase64 = getSkinFromPlayerProfile(player);
|
||||
if (skinBase64 == null && plugin.getConfigManager().useSkinsRestorer()) {
|
||||
if (skinBase64 == null && true) {
|
||||
plugin.logInfo("PlayerProfile获取失败,尝试SkinsRestorer: " + player.getName());
|
||||
skinBase64 = getSkinFromSkinsRestorer(player);
|
||||
}
|
||||
@@ -122,7 +122,7 @@ public class SkinManager {
|
||||
}
|
||||
// 缓存不存在,尝试其他来源
|
||||
skinBase64 = getSkinFromPlayerProfile(player);
|
||||
if (skinBase64 == null && plugin.getConfigManager().useSkinsRestorer()) {
|
||||
if (skinBase64 == null && true) {
|
||||
skinBase64 = getSkinFromSkinsRestorer(player);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user