mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	better error reporting on enabling mcMMO
This commit is contained in:
		@@ -193,13 +193,9 @@ public class mcMMO extends JavaPlugin {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
        catch (Throwable t) {
 | 
					        catch (Throwable t) {
 | 
				
			||||||
            getLogger().severe("There was an error while enabling mcMMO!");
 | 
					            getLogger().severe("There was an error while enabling mcMMO!");
 | 
				
			||||||
 | 
					 | 
				
			||||||
            if (!(t instanceof ExceptionInInitializerError)) {
 | 
					 | 
				
			||||||
            t.printStackTrace();
 | 
					            t.printStackTrace();
 | 
				
			||||||
            }
 | 
					            getLogger().severe("End of error report for mcMMO");
 | 
				
			||||||
            else {
 | 
					 | 
				
			||||||
            getLogger().info("Please do not replace the mcMMO jar while the server is running.");
 | 
					            getLogger().info("Please do not replace the mcMMO jar while the server is running.");
 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
            getServer().getPluginManager().disablePlugin(this);
 | 
					            getServer().getPluginManager().disablePlugin(this);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user