Class VelocityOnlyPlayerContextual<MESSAGE>

java.lang.Object
dev.rollczi.litecommands.velocity.tools.VelocityOnlyPlayerContextual<MESSAGE>
All Implemented Interfaces:
dev.rollczi.litecommands.context.ContextChainedProvider<com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.proxy.Player>, dev.rollczi.litecommands.context.ContextProvider<com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.proxy.Player>

@Deprecated public class VelocityOnlyPlayerContextual<MESSAGE> extends Object implements dev.rollczi.litecommands.context.ContextProvider<com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.proxy.Player>
Deprecated.
Change the build-in LiteVelocityMessages.PLAYER_ONLY message instead. You can modify all messages using LiteCommandsBuilder.message(MessageKey, Object).
For example:
 builder.message(LiteVelocityMessages.PLAYER_ONLY, "Your custom message here");
 
or with the lambda function:
 builder.message(LiteVelocityMessages.PLAYER_ONLY, (invocation, __) -> "Your custom message here");
 
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    dev.rollczi.litecommands.context.ContextResult<com.velocitypowered.api.proxy.Player>
    provide(dev.rollczi.litecommands.invocation.Invocation<com.velocitypowered.api.command.CommandSource> invocation)
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface dev.rollczi.litecommands.context.ContextProvider

    provide
  • Constructor Details

    • VelocityOnlyPlayerContextual

      public VelocityOnlyPlayerContextual(MESSAGE onlyPlayerMessage)
      Deprecated.
  • Method Details

    • provide

      public dev.rollczi.litecommands.context.ContextResult<com.velocitypowered.api.proxy.Player> provide(dev.rollczi.litecommands.invocation.Invocation<com.velocitypowered.api.command.CommandSource> invocation)
      Deprecated.
      Specified by:
      provide in interface dev.rollczi.litecommands.context.ContextProvider<com.velocitypowered.api.command.CommandSource,com.velocitypowered.api.proxy.Player>