Skip to content

Instantly share code, notes, and snippets.

XakepSDK

Block or report user

Report or block XakepSDK

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:16ab573145f27e9cabea2e1344f29cb2
DigitalOcean, 1gb ram, 1vCore(1.8GHz), $5
BYTE UNIX Benchmarks (Version 5.1.3)
System: centos-1024mb-fra1-01: GNU/Linux
OS: GNU/Linux -- 3.10.0-693.21.1.el7.x86_64 -- #1 SMP Wed Mar 7 19:03:37 UTC 2018
Machine: x86_64 (x86_64)
Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
CPU 0: Intel(R) Xeon(R) CPU E5-2650L v3 @ 1.80GHz (3595.8 bogomips)
x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
10:58:27 up 22 days, 17:24, 1 user, load average: 0.31, 0.08, 0.07; runlevel 2018-06-02
View gist:d34b0eb509b7420abbd55dbe02997784
java.lang.ClassCastException: net.minecraft.util.DamageSource cannot be cast to org.spongepowered.api.entity.living.player.Player
at dk.xakeps.simplescavenger.SimpleScavenger.onPlayerDeath(SimpleScavenger.java:30) ~[SimpleScavenger.class:?]
at org.spongepowered.common.event.listener.DeathListener_SimpleScavenger_onPlayerDeath3.handle(Unknown Source) ~[?:?]
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95) ~[RegisteredListener.class:1.12.2-7.1.0-BETA-11]
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:403) [SpongeEventManager.class:1.12.2-7.1.0-BETA-11]
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:430) [SpongeEventManager.class:1.12.2-7.1.0-BETA-11]
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:422) [SpongeEventManager.class:1.12.2-7.1.0-BETA-11]
at org.spongepowered.common.SpongeImpl.postEvent(SpongeImpl.java:207) [SpongeImpl.class:1.12.2-7.1.0-BETA-11]
at or
View Fix.java
try {
ClassLoader classLoader = getClass().getClassLoader();
Field invalidClasses = classLoader.getClass().getDeclaredField("invalidClasses");
invalidClasses.setAccessible(true);
Field negativeResourceCache = classLoader.getClass().getDeclaredField("negativeResourceCache");
negativeResourceCache.setAccessible(true);
Method clear = Set.class.getDeclaredMethod("clear");
Object o = invalidClasses.get(classLoader);
clear.invoke(o);
Object o1 = negativeResourceCache.get(classLoader);
You can’t perform that action at this time.