TrodelHD

Untitled

Jul 23rd, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1.  
  2. public static Economy eco;
  3.  
  4. ///////////////////////
  5.  
  6. if(setupEcomomy()){
  7. System.out.println("["+PluginName+"] Economy Plugin erkannt");
  8. }else{
  9. for(int i = 0;i<50;i++){
  10. System.out.println("["+PluginName+"] Economy Plugin NICHT erkannt [Installiere Vault und ein Economy Plugin]");
  11. }
  12. }
  13.  
  14. ///////////////////
  15.  
  16. private boolean setupEcomomy(){
  17.  
  18. if(getServer().getPluginManager().getPlugin("Vault") == null){
  19. return false;
  20. }
  21. RegisteredServiceProvider<Economy> rsp = getServer().getServicesManager().getRegistration(Economy.class);
  22. if(rsp == null){
  23. return false;
  24. }
  25. eco = rsp.getProvider();
  26. return eco != null;
  27.  
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment