2018-03-21 09:15:51 -04:00
|
|
|
/*
|
2020-07-27 15:21:35 +08:00
|
|
|
* This file is part of PlaceholderAPI
|
2018-03-21 09:15:51 -04:00
|
|
|
*
|
|
|
|
* PlaceholderAPI
|
2021-01-20 15:29:13 -05:00
|
|
|
* Copyright (c) 2015 - 2021 PlaceholderAPI Team
|
2018-03-21 09:15:51 -04:00
|
|
|
*
|
2021-04-13 17:54:57 +02:00
|
|
|
* PlaceholderAPI is free software: you can redistribute it and/or modify
|
2018-03-21 09:15:51 -04:00
|
|
|
* 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.
|
|
|
|
*
|
2020-07-27 15:21:35 +08:00
|
|
|
* PlaceholderAPI is distributed in the hope that it will be useful,
|
2018-03-21 09:15:51 -04:00
|
|
|
* 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2020-07-27 15:21:35 +08:00
|
|
|
|
2018-03-20 19:04:14 -04:00
|
|
|
package me.clip.placeholderapi.expansion;
|
|
|
|
|
2021-09-20 02:42:38 +02:00
|
|
|
/**
|
|
|
|
* Implementing this interface adds the {@link #start() start} and {@link #stop() stop} void
|
|
|
|
* methods to your {@link me.clip.placeholderapi.expansion.PlaceholderExpansion PlaceholderExpansion}.
|
|
|
|
*
|
|
|
|
* <p>This can be used to execute methods and tasks whenever the PlaceholderExpansion has been
|
|
|
|
* successfully (un)registered.
|
|
|
|
*/
|
2018-03-20 19:04:14 -04:00
|
|
|
public interface Taskable {
|
2020-07-20 16:57:16 -04:00
|
|
|
|
2020-07-31 22:52:07 -04:00
|
|
|
/**
|
2021-09-20 02:42:38 +02:00
|
|
|
* Called when the implementing class has successfully been registered to the placeholder map.
|
|
|
|
* <br>Tasks that need to be performed when this expansion is registered should go here
|
2020-07-31 22:52:07 -04:00
|
|
|
*/
|
|
|
|
void start();
|
2018-07-16 17:28:56 +10:00
|
|
|
|
2020-07-31 22:52:07 -04:00
|
|
|
/**
|
2021-09-20 02:42:38 +02:00
|
|
|
* Called when the implementing class has been unregistered from PlaceholderAPI.
|
|
|
|
* <br>Tasks that need to be performed when this expansion has unregistered should go here
|
2020-07-31 22:52:07 -04:00
|
|
|
*/
|
|
|
|
void stop();
|
2018-03-20 19:04:14 -04:00
|
|
|
}
|