mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-01-09 19:48:13 +01:00
Add getter for standalone mode of the plugin
This commit is contained in:
parent
e963dc49b3
commit
060128b9d6
3
pom.xml
3
pom.xml
@ -57,7 +57,8 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>at.pcgamingfreaks</groupId>
|
<groupId>at.pcgamingfreaks</groupId>
|
||||||
<artifactId>PluginLib</artifactId>
|
<artifactId>PluginLib</artifactId>
|
||||||
<version>1.0.8-SNAPSHOT</version>
|
<version>1.0.11-SNAPSHOT</version>
|
||||||
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
@ -32,6 +32,9 @@
|
|||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Only available if the plugin is not running in standalone mode!
|
||||||
|
*/
|
||||||
public abstract class MinepacksCommand extends SubCommand
|
public abstract class MinepacksCommand extends SubCommand
|
||||||
{
|
{
|
||||||
private static MinepacksPlugin minepacksPlugin = null;
|
private static MinepacksPlugin minepacksPlugin = null;
|
||||||
|
@ -24,6 +24,7 @@ public interface MinepacksCommandManager
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Registers a new sub-command for /backpack.
|
* Registers a new sub-command for /backpack.
|
||||||
|
* This function is only available if the plugin is not running in standalone mode!
|
||||||
*
|
*
|
||||||
* @param command The command that should be registered.
|
* @param command The command that should be registered.
|
||||||
*/
|
*/
|
||||||
@ -31,6 +32,7 @@ public interface MinepacksCommandManager
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Unregisters a sub-command for /backpack.
|
* Unregisters a sub-command for /backpack.
|
||||||
|
* This function is only available if the plugin is not running in standalone mode!
|
||||||
*
|
*
|
||||||
* @param command The command that should be unregistered.
|
* @param command The command that should be unregistered.
|
||||||
*/
|
*/
|
||||||
|
@ -57,6 +57,13 @@ public interface MinepacksPlugin
|
|||||||
return new Version("0.0");
|
return new Version("0.0");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if the plugin is running in standalone mode. Some features and API functions are not available in standalone mode!
|
||||||
|
*
|
||||||
|
* @return True if the plugin is running in standalone mode.
|
||||||
|
*/
|
||||||
|
boolean isRunningInStandaloneMode();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Let a given player open the backpack of an other player.
|
* Let a given player open the backpack of an other player.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user