@Override public void onEventEnd(World w) { ECUtils.sendChatMessageToAllPlayersInDim( Config.dimensionID, EnumChatFormatting.GREEN + "The lights are back!"); if (w.provider.dimensionId == Config.dimensionID) ((WorldProviderFirstWorld) w.provider).generateLightBrightnessTable(); }
@Override public void onEventBeginning(World w) { ECUtils.sendChatMessageToAllPlayersInDim( Config.dimensionID, EnumChatFormatting.RED + "Why is it so dark?!"); ((WorldProviderFirstWorld) w.provider).generateLightBrightnessTable(); }