Skip to content

Instantly share code, notes, and snippets.

Integer numLinesPerPage = checkConfigInt();
// TODO: Remove title color once Sponge bug is fixed. Written 22/5/2017, last checked 24/6/2017.
// Messages should still look right once this gets fixed, as there's a fallback.
PaginationList.builder()
.title(Text.of(TextColors.DARK_PURPLE, header))
.contents(permissionMessageList)
.padding(Text.of(TextColors.DARK_PURPLE, "="))
.linesPerPage(numLinesPerPage)
.sendTo(player);
[15:02:10] [Server thread/INFO] [STDERR/pixelmon]: [com.pixelmonmod.pixelmon.RegistryHelper:init:88]: java.lang.Exception: Failed to load gym: grassgym.
[15:02:10] [Server thread/INFO] [STDERR/pixelmon]: [com.pixelmonmod.pixelmon.RegistryHelper:init:88]: at com.pixelmonmod.pixelmon.worldGeneration.structure.StructureRegistry.registerStructures(StructureRegistry.java:113)
[15:02:10] [Server thread/INFO] [STDERR/pixelmon]: [com.pixelmonmod.pixelmon.RegistryHelper:init:88]: at com.pixelmonmod.pixelmon.RegistryHelper.init(RegistryHelper.java:86)
[15:02:10] [Server thread/INFO] [STDERR/pixelmon]: [com.pixelmonmod.pixelmon.RegistryHelper:init:88]: at com.pixelmonmod.pixelmon.Pixelmon.init(Pixelmon.java:128)
[15:02:10] [Server thread/INFO] [STDERR/pixelmon]: [com.pixelmonmod.pixelmon.RegistryHelper:init:88]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[15:02:10] [Server thread/INFO] [STDERR/pixelmon]: [com.pixelmonmod.pixelmon.RegistryHelper:init:88]: at sun.reflect.NativeMethodAccessorImpl.
[16:14:03] [Server thread/ERROR] [FML/]: Exception caught during firing event net.minecraftforge.fml.common.gameevent.TickEvent$WorldTickEvent@18881891:
java.lang.NoSuchMethodError: net.minecraft.world.World.func_72910_y()Ljava/util/List;
at asop2.PsyduckTicker.onWorldTick(PsyduckTicker.java:24) ~[PsyduckTicker.class:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_38_PsyduckTicker_onWorldTick_WorldTickEvent.invoke(.dynamic) ~[?:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:635) [EventBus.class:?]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:591) [EventBus.class:?]
at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:269) [FMLCommonHandler.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:718) [MinecraftServer.class:?]
at net.minecraft.serve
# ------------------------------------------------------------------------- #
# PIXELUPGRADE CONFIG FILE FOR /DITTOFUSION
# DEFAULTS: 0, "fuse", 0/0/1/1/2/2/3, 5/10, 3, false, 100, 0
# NEW VALUES SHOULD BE THE SAME FORMAT AS THE DEFAULTS
# EXAMPLE: true/false | 1 | 1.0 | "text"
# ------------------------------------------------------------------------- #
# Changes the verbosity of this command's debug logger. Cumulative.
# 0 = print critical errors only, 1 = +changed stats/balances
# 2 = +normal start/exit, 3 = +ultra verbose bug tracking spam mode GO
# ------------------------------------------------------------------------- #
# PIXELUPGRADE CONFIG FILE FOR /UPGRADEIVS
# DEFAULTS #1: 0, "upgrade", 40/20/35/60/25, 0.025, 0,
# DEFAULTS #2: 5.0/5.0/1.0/2.5/1.5, 62, 0
# NEW VALUES SHOULD BE THE SAME FORMAT AS THE DEFAULTS
# EXAMPLE: true/false | 1 | 1.0 | "text"
# ------------------------------------------------------------------------- #
# Changes the verbosity of this command's debug logger. Cumulative.
# 0 = print critical errors only, 1 = +changed stats/balances
@SuppressWarnings({"ConstantConditions", "UnusedAssignment"})
public static String getConfigValue(String callSource, String node)
{
CommentedConfigurationNode commandConfig = null;
String returnString = null;
try
{
switch (callSource) // If you add a new command, update the switch list! Default should NEVER be called!
{
Claim PokeDex rewards!
xpgaming.pokedex.base.claim
List Pokémon left to catch!
xpgaming.pokedex.base.remaining
Count number of Pokemon caught!
xpgaming.pokedex.base.count
Reload the config!
Claim PokeDex rewards!
xpgaming.pokedex.base.claim
List Pokémon left to catch!
xpgaming.pokedex.base.remaining
Count number of Pokemon caught!
xpgaming.pokedex.base.count
Reload the config!
---- Minecraft Crash Report ----
// My bad.
Time: 1/8/18 11:25 PM
Description: Unexpected error
java.lang.NullPointerException: Unexpected error
at net.minecraftforge.common.ForgeHooks.onPickBlock(ForgeHooks.java:513)
at net.minecraft.client.Minecraft.func_147112_ai(Minecraft.java:2611)
at net.minecraft.client.Minecraft.func_184117_aA(Minecraft.java:2257)
---- Minecraft Crash Report ----
// Oh - I know what I did wrong!
Time: 1/8/18 11:39 PM
Description: Unexpected error
java.lang.NullPointerException: Unexpected error
at net.minecraftforge.common.ForgeHooks.onPickBlock(ForgeHooks.java:513)
at net.minecraft.client.Minecraft.func_147112_ai(Minecraft.java:2611)
at net.minecraft.client.Minecraft.func_184117_aA(Minecraft.java:2257)