Define external API

This commit is contained in:
Torrie Fischer 2012-04-25 16:33:47 -04:00
parent 5cbc8a5876
commit d56312ad21
2 changed files with 25 additions and 1 deletions

View File

@ -33,7 +33,7 @@ import java.util.logging.Logger;
import java.util.Random;
public class Plugin extends JavaPlugin {
public class Plugin extends JavaPlugin implements RegionAPI {
Logger log = Logger.getLogger("Regions");
RegionManager m_regions;
PlayerWatcher m_playerWatcher;

View File

@ -0,0 +1,24 @@
package us.camin.regions;
/**
* This file is part of Regions
*
* Regions is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Regions is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Regions. If not, see <http://www.gnu.org/licenses/>.
*
*/
public interface RegionAPI {
public void recalculatePlayerRegions();
public RegionManager regionManager();
}