Skip to content

Instantly share code, notes, and snippets.

View RoboMWM's full-sized avatar

RoboMWM

View GitHub Profile
[16:05:55] Qball: i WASNT doing anything wrong
@RoboMWM
RoboMWM / gist:9fdaecb3c4dbf231368360b974b30eef
Created August 19, 2017 21:55
SetExpFix in EssentialsX

[14:47:55] +SupaHam: RoboMWM: oh i think the first one is to represent how much exp is required on one level. Whereas getExpToLevel returns all the exp required upto the specified level

[14:48:13] +SupaHam: so so getExpToLevel is a total, and getExpAtLevel is a single iteration in that total

[10:54:47] @Byteflux: I've been on /r/politics for a long ass time and I've read upvoted Trump news many times
@RoboMWM
RoboMWM / gist:747e71ea02d953a0dc551b50da6cbe91
Last active August 18, 2017 03:07
elraro is a code thief. And no, just because a plugin isn't updated doesn't mean you get to steal it. It's called - MAKE YOUR OWN
[15:37:07] <lillelykke> Opinions on https://www.spigotmc.org/resources/opencoreprotect.45885/ ?
[15:37:09] <spammy24> if not, just wait a bit
[15:37:42] <lillelykke> I feel it's a bit on the edge when it looks like OpenCoreProtect has created all this themself, but in reality it's a CoreProtect ripoff.
[15:38:44] <Sweepyoface> ..what's the difference?
[15:38:47] <Sweepyoface> CP works on latest
[15:39:12] <chrismin13> Honestly, too much Todo. Finish the plugin then release it. My first plugin took over 6 Months to develop and that's without the reset in mind. So, wait, make something that's great and better than anything else
[15:39:16] *** Quits: DevMC ([email protected]) (Ping timeout: 121 seconds)
[15:39:19] <RoboMWM> I wonder if he used decompiled code as a .... guide
[15:39:23] <Intelli> Yikes, looks like they literally stole the source code.
[15:39:26] <lillelykke> According to https://github.com/elraro/OpenCoreProtect/commit/48957937d2e421c1183be43e7a2cbb5b6caf3853, nothing?
[00:11:58] Erebos: why is player yaw sometimes coming in as a value between 0-360, sometimes as a value between 0 and -360 and sometimes between -180 and 180?
[00:14:01] libraryaddict: I think I tend to use yaw+720%360
@RoboMWM
RoboMWM / Util.java
Created August 12, 2017 17:00 — forked from aikar/Util.java
set damage modifier thingy
public static void setDamage(EntityDamageEvent event, double dmg) {
if (event.getFinalDamage() == 0) {
if (dmg != 0) {
event.setDamage(dmg);
}
return;
}
final double ratio = dmg / event.getFinalDamage();
for (DamageModifier mod : DamageModifier.values()) {
if (event.isApplicable(mod)) {
[12:53:59] [Server thread/INFO]: [TheFloorIsLava] Enabling TheFloorIsLava v1.0
[12:53:59] [Server thread/ERROR]: Error occurred while enabling TheFloorIsLava v1.0 (Is it up to date?)
java.lang.StackOverflowError: null
at java.util.AbstractCollection.toArray(Unknown Source) ~[?:1.8.0_131]
at java.util.ArrayList.<init>(Unknown Source) ~[?:1.8.0_131]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.getWorlds(CraftServer.java:614) ~[patched_1.12.jar:git-Paper-1147]
at me.OLLIEZ4.Main.onEnable(Main.java:84) ~[?:?]
at me.OLLIEZ4.Main.onEnable(Main.java:113) ~[?:?]
at me.OLLIEZ4.Main.onEnable(Main.java:113) ~[?:?]
at me.OLLIEZ4.Main.onEnable(Main.java:113) ~[?:?]
https://github.com/oshcon/ProjectKorraMobs/blob/master/src/main/java/com/jedk1/projectkorra/mobs/ability/air/AirBlast.java#L59
[04:17:24] [Server thread/WARN]: [ProjectKorraMobs] Task #228 for ProjectKorraMobs v1.1.0 generated an exception
java.lang.IllegalArgumentException: x not finite
at org.bukkit.util.NumberConversions.checkFinite(NumberConversions.java:115) ~[patched_1.12.jar:git-Paper-1142]
at org.bukkit.util.Vector.checkFinite(Vector.java:624) ~[patched_1.12.jar:git-Paper-1142]
at org.bukkit.craftbukkit.v1_12_R1.entity.CraftEntity.setVelocity(CraftEntity.java:242) ~[patched_1.12.jar:git-Paper-1142]
at com.jedk1.projectkorra.mobs.ability.air.AirBlast.progress(AirBlast.java:59) ~[?:?]
at com.jedk1.projectkorra.mobs.ability.air.AirBlast.progressAll(AirBlast.java:75) ~[?:?]
at com.jedk1.projectkorra.mobs.ability.air.AirAbility.progress(AirAbility.java:30) ~[?:?]
@RoboMWM
RoboMWM / log4j2.xml
Last active June 13, 2017 06:38 — forked from EvilSeph/log4j2.xml
Bukkit 1.6 style logging log4j2 configuration (includes thread and log level in console and file) - Note that an update to log4j has caused the append parameter to be false by default. Also note that yet another update uses TerminalConsole instead of queue.
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Appenders>
<Console name="WINDOWS_COMPAT" target="SYSTEM_OUT"></Console>
<TerminalConsole name="TerminalConsole">
<PatternLayout pattern="%highlightError{%d{yyyy-MM-dd HH:mm:ss} [%t/%level] %minecraftFormatting{%msg}%n%xEx}" />
</TerminalConsole>
<RandomAccessFile name="File" fileName="server.log" append="true">
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} [%t/%level] %minecraftFormatting{%msg}{strip}%n" />
</RandomAccessFile>
@RoboMWM
RoboMWM / gist:233adff070d3285865b45fd950a19891
Created June 10, 2017 21:46
Da speech de Hex about reviews
[14:43:07] * Hex sets mode: +m
[14:43:12] %Hex: Take a minute and listen.
[14:43:17] %Hex: The Spigot resource section is not perfect.
[14:43:21] %Hex: We don't intend it to be perfect.
[14:43:31] %Hex: Believe it or not, we've been dealing with issues since the moment we added it.
[14:43:41] %Hex: And every day, another person comes up and tells us exactly how to fix it.
[14:43:48] %Hex: And, for a while, we really tried.
[14:43:55] %Hex: We'd make changes to the rules
[14:43:59] %Hex: to the resource manager
[14:44:01] %Hex: And so on.