Define external API
This commit is contained in:
parent
5cbc8a5876
commit
d56312ad21
@ -33,7 +33,7 @@ import java.util.logging.Logger;
|
|||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
public class Plugin extends JavaPlugin {
|
public class Plugin extends JavaPlugin implements RegionAPI {
|
||||||
Logger log = Logger.getLogger("Regions");
|
Logger log = Logger.getLogger("Regions");
|
||||||
RegionManager m_regions;
|
RegionManager m_regions;
|
||||||
PlayerWatcher m_playerWatcher;
|
PlayerWatcher m_playerWatcher;
|
||||||
|
24
src/main/java/us/camin/regions/RegionAPI.java
Normal file
24
src/main/java/us/camin/regions/RegionAPI.java
Normal 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();
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user