Package org.galliumpowered.bridge
Interface Bridge
public interface Bridge
For bridging NMS to lib. For internal use.
-
Method Summary
Modifier and TypeMethodDescriptiongetPlayerByName(String name) Get aPlayerby their usernameVersion of Minecraft the server is running.voidFOR INTERNAL USE ONLY Loads the internal plugins (id: gallium)voidFOR INTERNAL USE ONLY Loads the test pluginvoidregisterCommand(String alias, String permission) Regusters a command to the servervoidregisterCommand(String alias, String permission, Args[] args) Regusters a command to the server
-
Method Details
-
registerCommand
Regusters a command to the server- Parameters:
alias- The alias for the command (i.e. /example)permission- The permission required to execute the command (i.e. "EXAMPLE)
-
registerCommand
Regusters a command to the server- Parameters:
alias- The alias for the command (i.e. /example)permission- The permission required to execute the command (i.e. "EXAMPLE)args- Arguments for the command which may be required
-
getPlayerByName
Get aPlayerby their username- Parameters:
name- The username of the player- Returns:
- Player (or Optional.empty() if they are not found)
-
getServerVersion
String getServerVersion()Version of Minecraft the server is running.- Returns:
- Minecraft version
-
loadInternalPlugin
void loadInternalPlugin()FOR INTERNAL USE ONLY Loads the internal plugins (id: gallium) -
loadTestPlugin
void loadTestPlugin()FOR INTERNAL USE ONLY Loads the test plugin
-