Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Boolean commandEnabled = null, recheckIsFree = null, explicitReveal = null;
- Integer debugVerbosityMode = null, commandCost = null;
- Player player = (Player) src;
- if (CheckEggConfig.getInstance().getConfig().getNode("commandEnabled").isVirtual())
- commandEnabled = CheckEggConfig.getInstance().getConfig().getNode("commandEnabled").getBoolean();
- if (CheckEggConfig.getInstance().getConfig().getNode("debugVerbosityMode").isVirtual())
- debugVerbosityMode = CheckEggConfig.getInstance().getConfig().getNode("debugVerbosityMode").getInt();
- if (CheckEggConfig.getInstance().getConfig().getNode("explicitReveal").isVirtual())
- explicitReveal = CheckEggConfig.getInstance().getConfig().getNode("explicitReveal").getBoolean();
- if (CheckEggConfig.getInstance().getConfig().getNode("recheckIsFree").isVirtual())
- recheckIsFree = CheckEggConfig.getInstance().getConfig().getNode("recheckIsFree").getBoolean();
- if (CheckEggConfig.getInstance().getConfig().getNode("commandCost").isVirtual())
- commandCost = CheckEggConfig.getInstance().getConfig().getNode("commandCost").getInt();
- if (commandEnabled == null || recheckIsFree == null || explicitReveal == null || debugVerbosityMode == null || commandCost == null)
- {
- PixelUpgrade.log.info("\u00A7bCheckEgg debug: Error parsing config! Make sure everything is valid, or regenerate it.");
- player.sendMessage(Text.of("\u00A74Error: \u00A7cInvalid config for command! Please report this to staff."));
- }
- else
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement