Class BukkitHelper
java.lang.Object
org.incendo.cloud.bukkit.internal.BukkitHelper
-
Method Summary
Modifier and TypeMethodDescriptiondescription(@NonNull Command<?> command) Get the Bukkit description for a cloud command.static voidmainThreadExecutor(@NonNull PluginHolder pluginHolder) Bukkit main thread executor.namespacedLabel(@NonNull String pluginName, @NonNull String label) Returns the namespaced version of a label.namespacedLabel(@NonNull PluginHolder manager, @NonNull String label) Returns the namespaced version of a label.stripNamespace(@NonNull String pluginName, @NonNull String command) Strips the owning plugin namespace from a command.stripNamespace(@NonNull PluginHolder manager, @NonNull String command) Strips the owning plugin namespace from a command.
-
Method Details
-
description
Get the Bukkit description for a cloud command.- Parameters:
command- command- Returns:
- bukkit description
-
namespacedLabel
Returns the namespaced version of a label.- Parameters:
manager- managerlabel- label- Returns:
- namespaced label
-
namespacedLabel
Returns the namespaced version of a label.- Parameters:
pluginName- plugin namelabel- label- Returns:
- namespaced label
-
stripNamespace
public static @NonNull String stripNamespace(@NonNull PluginHolder manager, @NonNull String command) Strips the owning plugin namespace from a command.- Parameters:
manager- managercommand- command line- Returns:
- modified command line
-
stripNamespace
Strips the owning plugin namespace from a command.- Parameters:
pluginName- plugin namecommand- command line- Returns:
- modified command line
-
mainThreadExecutor
Bukkit main thread executor.- Parameters:
pluginHolder- plugin holder- Returns:
- executor
-
ensurePluginEnabledOrEnabling
-