Add an API class and also add some testing for it.

This commit is contained in:
graywolf336
2014-07-23 16:39:45 -05:00
parent 59c583e8b3
commit 709a06f330
6 changed files with 206 additions and 4 deletions

View File

@ -113,6 +113,7 @@ public class JailMain extends JavaPlugin {
reloadJailPayManager();
reloadUpdateCheck();
new JailsAPI(this);
getLogger().info("Completed enablement.");
}
@ -300,6 +301,12 @@ public class JailMain extends JavaPlugin {
if(inDebug()) getLogger().info("[Debug]: " + message);
}
/**
* This method is only for testing, there is no need to use this.
*
* @return the move protection listener
* @deprecated
*/
public MoveProtectionListener getPlayerMoveListener() {
return this.mpl;
}