Class BungeeNodeExecutor

java.lang.Object
net.md_5.bungee.api.plugin.Command
me.lucyy.squirtgun.bungee.BungeeNodeExecutor
All Implemented Interfaces:
net.md_5.bungee.api.plugin.TabExecutor

public class BungeeNodeExecutor extends net.md_5.bungee.api.plugin.Command implements net.md_5.bungee.api.plugin.TabExecutor
Wraps a CommandNode so it can be executed by a BungeeCord proxy.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BungeeNodeExecutor​(me.lucyy.squirtgun.command.node.CommandNode<me.lucyy.squirtgun.platform.audience.PermissionHolder> node, me.lucyy.squirtgun.format.FormatProvider formatter, BungeePlatform platform)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute​(net.md_5.bungee.api.CommandSender sender, String[] args)
     
    onTabComplete​(net.md_5.bungee.api.CommandSender sender, String[] args)
     

    Methods inherited from class net.md_5.bungee.api.plugin.Command

    canEqual, equals, getAliases, getName, getPermission, getPermissionMessage, hashCode, hasPermission, setPermissionMessage, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BungeeNodeExecutor

      public BungeeNodeExecutor(me.lucyy.squirtgun.command.node.CommandNode<me.lucyy.squirtgun.platform.audience.PermissionHolder> node, me.lucyy.squirtgun.format.FormatProvider formatter, BungeePlatform platform)
      Parameters:
      node - the root command node to execute
      formatter - the command sender to pass to the context
      platform - the platform that this node belongs to
  • Method Details

    • execute

      public void execute(net.md_5.bungee.api.CommandSender sender, String[] args)
      Specified by:
      execute in class net.md_5.bungee.api.plugin.Command
    • onTabComplete

      public Iterable<String> onTabComplete(net.md_5.bungee.api.CommandSender sender, String[] args)
      Specified by:
      onTabComplete in interface net.md_5.bungee.api.plugin.TabExecutor