Advertisement
Guest User

Untitled

a guest
May 25th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. Boolean commandEnabled = null, recheckIsFree = null, explicitReveal = null;
  2. Integer debugVerbosityMode = null, commandCost = null;
  3.  
  4. Player player = (Player) src;
  5.  
  6. if (CheckEggConfig.getInstance().getConfig().getNode("commandEnabled").isVirtual())
  7. commandEnabled = CheckEggConfig.getInstance().getConfig().getNode("commandEnabled").getBoolean();
  8.  
  9. if (CheckEggConfig.getInstance().getConfig().getNode("debugVerbosityMode").isVirtual())
  10. debugVerbosityMode = CheckEggConfig.getInstance().getConfig().getNode("debugVerbosityMode").getInt();
  11.  
  12. if (CheckEggConfig.getInstance().getConfig().getNode("explicitReveal").isVirtual())
  13. explicitReveal = CheckEggConfig.getInstance().getConfig().getNode("explicitReveal").getBoolean();
  14.  
  15. if (CheckEggConfig.getInstance().getConfig().getNode("recheckIsFree").isVirtual())
  16. recheckIsFree = CheckEggConfig.getInstance().getConfig().getNode("recheckIsFree").getBoolean();
  17.  
  18. if (CheckEggConfig.getInstance().getConfig().getNode("commandCost").isVirtual())
  19. commandCost = CheckEggConfig.getInstance().getConfig().getNode("commandCost").getInt();
  20.  
  21. if (commandEnabled == null || recheckIsFree == null || explicitReveal == null || debugVerbosityMode == null || commandCost == null)
  22. {
  23. PixelUpgrade.log.info("\u00A7bCheckEgg debug: Error parsing config! Make sure everything is valid, or regenerate it.");
  24. player.sendMessage(Text.of("\u00A74Error: \u00A7cInvalid config for command! Please report this to staff."));
  25. }
  26. else
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement