• Chào bạn, hãy đăng ký hoặc đăng nhập để tham gia cùng bọn mình và sử dụng được đầy đủ chức năng của diễn đàn :).
PoppyDoppy

Plugin customcrates không kích hoạt được

PoppyDoppy

THÀNH VIÊN
Tham gia
30/11/2021
Bài viết
47
Help ;-;
Log:
[04:21:38] [Server thread/INFO]: [CustomCrates] Enabling CustomCrates v4.4.0 1033[04:21:38] [Server thread/INFO]: [CustomCrates] Loading Language: language_en.yml 1034[04:21:38] [Server thread/ERROR]: Error occurred while enabling CustomCrates v4.4.0 (Is it up to date?) 1035java.lang.IllegalArgumentException: Cannot set already-set enchantment 1036at org.bukkit.enchantments.Enchantment.registerEnchantment(Enchantment.java:284) ~[patched_1.12.2.jar:git-Paper-1620] 1037at xyz.ufactions.enchantmentlib.EnchantmentLib.getGlowEnchantment(EnchantmentLib.java:22) ~[?:?] 1038at xyz.ufactions.customcrates.libs.ItemBuilder.glow(ItemBuilder.java:44) ~[?:?] 1039at xyz.ufactions.customcrates.file.CratesFile.itemFromConfiguration(CratesFile.java:324) ~[?:?] 1040at xyz.ufactions.customcrates.file.CratesFile.getCrateByFile(CratesFile.java:243) ~[?:?] 1041at xyz.ufactions.customcrates.file.CratesFile.getCrates(CratesFile.java:172) ~[?:?] 1042at xyz.ufactions.customcrates.manager.CratesManager.reload(CratesManager.java:26) ~[?:?] 1043at xyz.ufactions.customcrates.manager.CratesManager.<init>(CratesManager.java:19) ~[?:?] 1044at xyz.ufactions.customcrates.CustomCrates.onEnable(CustomCrates.java:46) ~[?:?] 1045at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[patched_1.12.2.jar:git-Paper-1620] 1046at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:316) ~[patched_1.12.2.jar:git-Paper-1620] 1047at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) ~[patched_1.12.2.jar:git-Paper-1620] 1048at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:395) ~[patched_1.12.2.jar:git-Paper-1620] 1049at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:344) ~[patched_1.12.2.jar:git-Paper-1620] 1050at org.bukkit.craftbukkit.v1_12_R1.CraftServer.reload(CraftServer.java:808) ~[patched_1.12.2.jar:git-Paper-1620] 1051at org.bukkit.Bukkit.reload(Bukkit.java:559) ~[patched_1.12.2.jar:git-Paper-1620] 1052at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:55) ~[patched_1.12.2.jar:git-Paper-1620] 1053at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:152) ~[patched_1.12.2.jar:git-Paper-1620] 1054at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:685) ~[patched_1.12.2.jar:git-Paper-1620] 1055at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchServerCommand(CraftServer.java:648) ~[patched_1.12.2.jar:git-Paper-1620] 1056at net.minecraft.server.v1_12_R1.DedicatedServer.aP(DedicatedServer.java:463) ~[patched_1.12.2.jar:git-Paper-1620] 1057at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:424) ~[patched_1.12.2.jar:git-Paper-1620] 1058at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:774) ~[patched_1.12.2.jar:git-Paper-1620] 1059at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:666) ~[patched_1.12.2.jar:git-Paper-1620] 1060at java.lang.Thread.run(Thread.java:748) [?:1.8.0_292] 1061[04:21:38] [Server thread/INFO]: [CustomCrates] Disabling CustomCrates v4.4.0 1062[04:21:38] [Server thread/ERROR]: Error occurred while disabling CustomCrates v4.4.0 (Is it up to date?) 1063java.lang.NullPointerException: null 1064at xyz.ufactions.customcrates.CustomCrates.onDisable(CustomCrates.java:69) ~[?:?] 1065at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:266) ~[patched_1.12.2.jar:git-Paper-1620] 1066at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:350) ~[patched_1.12.2.jar:git-Paper-1620] 1067at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:437) ~[patched_1.12.2.jar:git-Paper-1620] 1068at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:320) ~[patched_1.12.2.jar:git-Paper-1620] 1069at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) ~[patched_1.12.2.jar:git-Paper-1620] 1070at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:395) ~[patched_1.12.2.jar:git-Paper-1620] 1071at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:344) ~[patched_1.12.2.jar:git-Paper-1620] 1072at org.bukkit.craftbukkit.v1_12_R1.CraftServer.reload(CraftServer.java:808) ~[patched_1.12.2.jar:git-Paper-1620] 1073at org.bukkit.Bukkit.reload(Bukkit.java:559) ~[patched_1.12.2.jar:git-Paper-1620] 1074at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:55) ~[patched_1.12.2.jar:git-Paper-1620] 1075at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:152) ~[patched_1.12.2.jar:git-Paper-1620] 1076at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:685) ~[patched_1.12.2.jar:git-Paper-1620] 1077at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchServerCommand(CraftServer.java:648) ~[patched_1.12.2.jar:git-Paper-1620] 1078at net.minecraft.server.v1_12_R1.DedicatedServer.aP(DedicatedServer.java:463) ~[patched_1.12.2.jar:git-Paper-1620] 1079at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:424) ~[patched_1.12.2.jar:git-Paper-1620] 1080at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:774) ~[patched_1.12.2.jar:git-Paper-1620] 1081at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:666) ~[patched_1.12.2.jar:git-Paper-1620] 1082at java.lang.Thread.run(Thread.java:748) [?:1.8.0_292]
 
[04:21:38] [Server thread/INFO]: [CustomCrates] Enabling CustomCrates v4.4.0 1033[04:21:38] [Server thread/INFO]: [CustomCrates] Loading Language: language_en.yml 1034[04:21:38] [Server thread/ERROR]: Error occurred while enabling CustomCrates v4.4.0 (Is it up to date?)
Lỗi là do file language_en.yml bị sai gì đó
 
Lỗi ở đâu vậy
# Errors
error_playing_sound: 'There was an error while playing sound %type% to player %player%!'
error_file_saving: '&cThere was an error whilst saving the files.'
spin-not-found: 'Failed to load crate spin type for "%crate%". Defaulting to spin type ROULETTE.'
crate-block-not-found: 'Failed to load crate block for "%crate%". Defaulting to CHEST block.'
failed-load-prize: 'Failed to load prize "%path%" for crate "%crate%".'
failed-load-crate: 'Failed to load crate from file: %file%'
no-player: '&cYou must be a player to do this action.'
no-permission: '&cYou do not have permission for this command.'
no-target-block: '&cYou must be looking at a block.'
target-not-crate: '&cThe location you''re looking at is not a crate.'
invalid-crate-input: '&cYou have entered an invalid crate name.'
incorrect-block-target: '&cYou must be looking at a "%target%" to set it as a crate.'
location-already-set: '&cThis location is already a crate'
invalid-integer: '&cYou have entered an invalid number.'
player-not-found: '&cPlayer not found.'
failed-load-sign: '&cFailed to load this sign.'
no-money: '&cYou do not have enough money.'


# Information
prefix: '&7[&4CustomCrates&7] '
no_key: '&cYou don''t have a %name% &ckey.'
no-available-crates: '&cThere are no available crates.'
broken_crate: '&7You have broken the crate at this location.'
update-available: '&aThere is a plugin update available.'
update-downloaded: '&aThe newest version was downloaded. Restart for change.'
reloading: '&7Reloading plugin...'
reloaded: '&7Reload Successful!'
available-crates-header: '&7Available Crates:'
target-broken: '&7You have removed the crate at the location you are looking at.'
target-block-set: '&7The location you are looking at has been set as a crate location'
previewing: '&7Previewing &c%crate%&7...'
opening: '&7Opening &c%crate%&7...'
key-received: '&7You have received &c%amount% &7x &c%crate% &7crate key(s).'
key-given: '&7You have given &c%target% %amount%&7x &c%crate% &7crate key(s).'
key-given-all: '&7You have given everyone on the server &c%amount%&7x &c%crate% &7crate keys. (Total of &c%total% &7keys given).'
sign-purchase-set: '&7Purchase location set.'
key-purchased: '&7You have purchased a key.'
 
Lỗi ở đâu vậy
# Errors
error_playing_sound: 'There was an error while playing sound %type% to player %player%!'
error_file_saving: '&cThere was an error whilst saving the files.'
spin-not-found: 'Failed to load crate spin type for "%crate%". Defaulting to spin type ROULETTE.'
crate-block-not-found: 'Failed to load crate block for "%crate%". Defaulting to CHEST block.'
failed-load-prize: 'Failed to load prize "%path%" for crate "%crate%".'
failed-load-crate: 'Failed to load crate from file: %file%'
no-player: '&cYou must be a player to do this action.'
no-permission: '&cYou do not have permission for this command.'
no-target-block: '&cYou must be looking at a block.'
target-not-crate: '&cThe location you''re looking at is not a crate.'
invalid-crate-input: '&cYou have entered an invalid crate name.'
incorrect-block-target: '&cYou must be looking at a "%target%" to set it as a crate.'
location-already-set: '&cThis location is already a crate'
invalid-integer: '&cYou have entered an invalid number.'
player-not-found: '&cPlayer not found.'
failed-load-sign: '&cFailed to load this sign.'
no-money: '&cYou do not have enough money.'


# Information
prefix: '&7[&4CustomCrates&7] '
no_key: '&cYou don''t have a %name% &ckey.'
no-available-crates: '&cThere are no available crates.'
broken_crate: '&7You have broken the crate at this location.'
update-available: '&aThere is a plugin update available.'
update-downloaded: '&aThe newest version was downloaded. Restart for change.'
reloading: '&7Reloading plugin...'
reloaded: '&7Reload Successful!'
available-crates-header: '&7Available Crates:'
target-broken: '&7You have removed the crate at the location you are looking at.'
target-block-set: '&7The location you are looking at has been set as a crate location'
previewing: '&7Previewing &c%crate%&7...'
opening: '&7Opening &c%crate%&7...'
key-received: '&7You have received &c%amount% &7x &c%crate% &7crate key(s).'
key-given: '&7You have given &c%target% %amount%&7x &c%crate% &7crate key(s).'
key-given-all: '&7You have given everyone on the server &c%amount%&7x &c%crate% &7crate keys. (Total of &c%total% &7keys given).'
sign-purchase-set: '&7Purchase location set.'
key-purchased: '&7You have purchased a key.'
xóa file languege_en.yml rồi reload lại xem
 
Similar content Most view Xem thêm
Back
Top Bottom