Вы используете устаревший браузер. Этот и другие сайты могут отображаться в нём некорректно. Вам необходимо обновить браузер или попробовать использовать другой.
%beacmcstaffwork_player_work% - выводит сообщение о том, что игрок на работе, либо нет
%beacmcstaffwork_moderators_on_work% - выводит количевство модераторов на работе...
Лучше не сокращать команды до двух букв, особенно когда они могут значить другое. Например, тот же sw скорее ассоциируется со SkyWars, а не StaffWork...
Лучше не сокращать команды до двух букв, особенно когда они могут значить другое. Например, тот же sw скорее ассоциируется со SkyWars, а не StaffWork...
Плагин очень интересный, но столкнулся с такой проблемой, что в консоли временами начинает спамить ошибкой
[14:46:45 ERROR]: Could not pass event EntityDamageByEntityEvent to BeacmcStaffWork v1.1.0
java.lang.ClassCastException: class org.bukkit.craftbukkit.v1_17_R1.entity.CraftEnderDragon cannot be cast to class org.bukkit.entity.Player (org.bukkit.craftbukkit.v1_17_R1.entity.CraftEnderDragon and org.bukkit.entity.Player are in unnamed module of loader 'app')
at com.beacmc.beacmcstaffwork.handlers.SWHandler.PlayerDamage(SWHandler.java:46) ~[BeacmcStaffWork-1.1.0.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor138.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.17.1.jar:git-Purpur-1428]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.17.1.jar:git-Purpur-1428]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.17.1.jar:git-Purpur-1428]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[patched_1.17.1.jar:git-Purpur-1428]
at org.bukkit.craftbukkit.v1_17_R1.event.CraftEventFactory.callEvent(CraftEventFactory.java:247) ~[patched_1.17.1.jar:git-Purpur-1428]
at org.bukkit.craftbukkit.v1_17_R1.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:1128) ~[patched_1.17.1.jar:git-Purpur-1428]
at org.bukkit.craftbukkit.v1_17_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:1002) ~[patched_1.17.1.jar:git-Purpur-1428]
at org.bukkit.craftbukkit.v1_17_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:957) ~[patched_1.17.1.jar:git-Purpur-1428]
at org.bukkit.craftbukkit.v1_17_R1.event.CraftEventFactory.handleLivingEntityDamageEvent(CraftEventFactory.java:1160) ~[patched_1.17.1.jar:git-Purpur-1428]
at net.minecraft.world.entity.LivingEntity.damageEntity0(LivingEntity.java:2097) ~[app:?]
at net.minecraft.world.entity.LivingEntity.hurt(LivingEntity.java:1373) ~[app:?]
at net.minecraft.world.entity.Mob.hurt(Mob.java:357) ~[app:?]
at net.minecraft.world.entity.monster.EnderMan.hurt(EnderMan.java:414) ~[app:?]
at net.minecraft.world.entity.boss.enderdragon.EnderDragon.knockBack(EnderDragon.java:522) ~[app:?]
at net.minecraft.world.entity.boss.enderdragon.EnderDragon.aiStep(EnderDragon.java:393) ~[app:?]
at net.minecraft.world.entity.LivingEntity.tick(LivingEntity.java:2972) ~[app:?]
at net.minecraft.world.entity.Mob.tick(Mob.java:424) ~[app:?]
at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1204) ~[app:?]
at net.minecraft.server.level.ServerLevel.lambda$tick$7(ServerLevel.java:802) ~[app:?]
at net.minecraft.world.level.entity.EntityTickList.forEach(EntityTickList.java:43) ~[patched_1.17.1.jar:git-Purpur-1428]
at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:781) ~[app:?]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1652) ~[patched_1.17.1.jar:git-Purpur-1428]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:528) ~[patched_1.17.1.jar:git-Purpur-1428]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1507) ~[patched_1.17.1.jar:git-Purpur-1428]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1300) ~[patched_1.17.1.jar:git-Purpur-1428]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:322) ~[patched_1.17.1.jar:git-Purpur-1428]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Плагин очень интересный, но столкнулся с такой проблемой, что в консоли временами начинает спамить ошибкой
[14:46:45 ERROR]: Could not pass event EntityDamageByEntityEvent to BeacmcStaffWork v1.1.0
java.lang.ClassCastException: class org.bukkit.craftbukkit.v1_17_R1.entity.CraftEnderDragon cannot be cast to class org.bukkit.entity.Player (org.bukkit.craftbukkit.v1_17_R1.entity.CraftEnderDragon and org.bukkit.entity.Player are in unnamed module of loader 'app')
at com.beacmc.beacmcstaffwork.handlers.SWHandler.PlayerDamage(SWHandler.java:46) ~[BeacmcStaffWork-1.1.0.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor138.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.17.1.jar:git-Purpur-1428]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.17.1.jar:git-Purpur-1428]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.17.1.jar:git-Purpur-1428]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[patched_1.17.1.jar:git-Purpur-1428]
at org.bukkit.craftbukkit.v1_17_R1.event.CraftEventFactory.callEvent(CraftEventFactory.java:247) ~[patched_1.17.1.jar:git-Purpur-1428]
at org.bukkit.craftbukkit.v1_17_R1.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:1128) ~[patched_1.17.1.jar:git-Purpur-1428]
at org.bukkit.craftbukkit.v1_17_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:1002) ~[patched_1.17.1.jar:git-Purpur-1428]
at org.bukkit.craftbukkit.v1_17_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:957) ~[patched_1.17.1.jar:git-Purpur-1428]
at org.bukkit.craftbukkit.v1_17_R1.event.CraftEventFactory.handleLivingEntityDamageEvent(CraftEventFactory.java:1160) ~[patched_1.17.1.jar:git-Purpur-1428]
at net.minecraft.world.entity.LivingEntity.damageEntity0(LivingEntity.java:2097) ~[app:?]
at net.minecraft.world.entity.LivingEntity.hurt(LivingEntity.java:1373) ~[app:?]
at net.minecraft.world.entity.Mob.hurt(Mob.java:357) ~[app:?]
at net.minecraft.world.entity.monster.EnderMan.hurt(EnderMan.java:414) ~[app:?]
at net.minecraft.world.entity.boss.enderdragon.EnderDragon.knockBack(EnderDragon.java:522) ~[app:?]
at net.minecraft.world.entity.boss.enderdragon.EnderDragon.aiStep(EnderDragon.java:393) ~[app:?]
at net.minecraft.world.entity.LivingEntity.tick(LivingEntity.java:2972) ~[app:?]
at net.minecraft.world.entity.Mob.tick(Mob.java:424) ~[app:?]
at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1204) ~[app:?]
at net.minecraft.server.level.ServerLevel.lambda$tick$7(ServerLevel.java:802) ~[app:?]
at net.minecraft.world.level.entity.EntityTickList.forEach(EntityTickList.java:43) ~[patched_1.17.1.jar:git-Purpur-1428]
at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:781) ~[app:?]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1652) ~[patched_1.17.1.jar:git-Purpur-1428]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:528) ~[patched_1.17.1.jar:git-Purpur-1428]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1507) ~[patched_1.17.1.jar:git-Purpur-1428]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1300) ~[patched_1.17.1.jar:git-Purpur-1428]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:322) ~[patched_1.17.1.jar:git-Purpur-1428]
at java.lang.Thread.run(Thread.java:833) ~[?:?]