From ffd585e67c9c833f354ae5cc9b0fe9ea8cfab8b5 Mon Sep 17 00:00:00 2001 From: Trever Fischer Date: Wed, 25 Apr 2012 16:33:47 -0400 Subject: [PATCH] Define external API --- src/main/java/us/camin/regions/Plugin.java | 2 +- src/main/java/us/camin/regions/RegionAPI.java | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 src/main/java/us/camin/regions/RegionAPI.java 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(); +}