diff --git a/src/main/java/us/camin/regions/Plugin.java b/src/main/java/us/camin/regions/Plugin.java index bbb69a2..6b4b382 100644 --- a/src/main/java/us/camin/regions/Plugin.java +++ b/src/main/java/us/camin/regions/Plugin.java @@ -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; diff --git a/src/main/java/us/camin/regions/RegionAPI.java b/src/main/java/us/camin/regions/RegionAPI.java new file mode 100644 index 0000000..6dcc02c --- /dev/null +++ b/src/main/java/us/camin/regions/RegionAPI.java @@ -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 . + * + */ + +public interface RegionAPI { + public void recalculatePlayerRegions(); + public RegionManager regionManager(); +}