Class PaperCommandContextBridge
java.lang.Object
dev.shamoo.runtime.platform.paper.PaperCommandContextBridge
- All Implemented Interfaces:
AutoCloseable
Provides scheduled, data-only access to a command sender while its script callback is active.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()executeCommand(org.bukkit.command.CommandSender sender, String alias, String input, Map<String, Object> arguments, Map<String, Object> options, Function<Map<String, Object>, CompletionStage<?>> callback) findPlayer(String token, String name) takeMainHand(String token, String expectedMaterial, int expectedAmount)
-
Constructor Details
-
PaperCommandContextBridge
public PaperCommandContextBridge(org.bukkit.plugin.java.JavaPlugin plugin)
-
-
Method Details
-
executeCommand
-
reply
-
findPlayer
-
mainHand
-
takeMainHand
public CompletionStage<Boolean> takeMainHand(String token, String expectedMaterial, int expectedAmount) -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-