Package me.lucko.luckperms.fabric
Class FabricSenderFactory
java.lang.Object
me.lucko.luckperms.common.sender.SenderFactory<LPFabricPlugin,net.minecraft.server.command.ServerCommandSource>
me.lucko.luckperms.fabric.FabricSenderFactory
- All Implemented Interfaces:
AutoCloseable
public class FabricSenderFactory
extends me.lucko.luckperms.common.sender.SenderFactory<LPFabricPlugin,net.minecraft.server.command.ServerCommandSource>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetName(net.minecraft.server.command.ServerCommandSource commandSource) protected net.luckperms.api.util.TristategetPermissionValue(net.minecraft.server.command.ServerCommandSource commandSource, String node) protected LPFabricPluginprotected UUIDgetUniqueId(net.minecraft.server.command.ServerCommandSource commandSource) protected booleanhasPermission(net.minecraft.server.command.ServerCommandSource commandSource, String node) protected booleanisConsole(net.minecraft.server.command.ServerCommandSource sender) protected voidperformCommand(net.minecraft.server.command.ServerCommandSource sender, String command) protected voidsendMessage(net.minecraft.server.command.ServerCommandSource sender, net.kyori.adventure.text.Component message) static net.minecraft.text.TexttoNativeText(net.kyori.adventure.text.Component component) Methods inherited from class me.lucko.luckperms.common.sender.SenderFactory
close, consoleHasAllPermissions, wrap
-
Constructor Details
-
FabricSenderFactory
-
-
Method Details
-
getPlugin
- Overrides:
getPluginin classme.lucko.luckperms.common.sender.SenderFactory<LPFabricPlugin,net.minecraft.server.command.ServerCommandSource>
-
getUniqueId
- Specified by:
getUniqueIdin classme.lucko.luckperms.common.sender.SenderFactory<LPFabricPlugin,net.minecraft.server.command.ServerCommandSource>
-
getName
- Specified by:
getNamein classme.lucko.luckperms.common.sender.SenderFactory<LPFabricPlugin,net.minecraft.server.command.ServerCommandSource>
-
sendMessage
protected void sendMessage(net.minecraft.server.command.ServerCommandSource sender, net.kyori.adventure.text.Component message) - Specified by:
sendMessagein classme.lucko.luckperms.common.sender.SenderFactory<LPFabricPlugin,net.minecraft.server.command.ServerCommandSource>
-
getPermissionValue
protected net.luckperms.api.util.Tristate getPermissionValue(net.minecraft.server.command.ServerCommandSource commandSource, String node) - Specified by:
getPermissionValuein classme.lucko.luckperms.common.sender.SenderFactory<LPFabricPlugin,net.minecraft.server.command.ServerCommandSource>
-
hasPermission
protected boolean hasPermission(net.minecraft.server.command.ServerCommandSource commandSource, String node) - Specified by:
hasPermissionin classme.lucko.luckperms.common.sender.SenderFactory<LPFabricPlugin,net.minecraft.server.command.ServerCommandSource>
-
performCommand
protected void performCommand(net.minecraft.server.command.ServerCommandSource sender, String command) - Specified by:
performCommandin classme.lucko.luckperms.common.sender.SenderFactory<LPFabricPlugin,net.minecraft.server.command.ServerCommandSource>
-
isConsole
protected boolean isConsole(net.minecraft.server.command.ServerCommandSource sender) - Specified by:
isConsolein classme.lucko.luckperms.common.sender.SenderFactory<LPFabricPlugin,net.minecraft.server.command.ServerCommandSource>
-
toNativeText
public static net.minecraft.text.Text toNativeText(net.kyori.adventure.text.Component component)
-