Class BukkitSource

java.lang.Object
one.tranic.t.bukkit.command.source.BukkitSource
All Implemented Interfaces:
one.tranic.t.base.command.source.CommandSource<org.bukkit.command.CommandSender,org.bukkit.entity.Player>

public class BukkitSource extends Object implements one.tranic.t.base.command.source.CommandSource<org.bukkit.command.CommandSender,org.bukkit.entity.Player>
  • Constructor Details

    • BukkitSource

      public BukkitSource(org.bukkit.command.CommandSender commandSender, String[] args)
  • Method Details

    • getOperator

      public one.tranic.t.base.command.Operator getOperator()
      Specified by:
      getOperator in interface one.tranic.t.base.command.source.CommandSource<org.bukkit.command.CommandSender,org.bukkit.entity.Player>
    • getSource

      public org.bukkit.command.CommandSender getSource()
      Specified by:
      getSource in interface one.tranic.t.base.command.source.CommandSource<org.bukkit.command.CommandSender,org.bukkit.entity.Player>
    • isPlayer

      public boolean isPlayer()
      Specified by:
      isPlayer in interface one.tranic.t.base.command.source.CommandSource<org.bukkit.command.CommandSender,org.bukkit.entity.Player>
    • getArgs

      public String[] getArgs()
      Specified by:
      getArgs in interface one.tranic.t.base.command.source.CommandSource<org.bukkit.command.CommandSender,org.bukkit.entity.Player>
    • argSize

      public int argSize()
      Specified by:
      argSize in interface one.tranic.t.base.command.source.CommandSource<org.bukkit.command.CommandSender,org.bukkit.entity.Player>
    • getLocale

      @Nullable public @Nullable Locale getLocale()
      Specified by:
      getLocale in interface one.tranic.t.base.command.source.CommandSource<org.bukkit.command.CommandSender,org.bukkit.entity.Player>
    • hasPermission

      public boolean hasPermission(String permission)
      Specified by:
      hasPermission in interface one.tranic.t.base.command.source.CommandSource<org.bukkit.command.CommandSender,org.bukkit.entity.Player>
    • sendMessage

      public void sendMessage(String message)
      Specified by:
      sendMessage in interface one.tranic.t.base.command.source.CommandSource<org.bukkit.command.CommandSender,org.bukkit.entity.Player>
    • sendMessage

      public void sendMessage(@NotNull @NotNull net.kyori.adventure.text.Component message)
      Specified by:
      sendMessage in interface one.tranic.t.base.command.source.CommandSource<org.bukkit.command.CommandSender,org.bukkit.entity.Player>
    • showBossBar

      public void showBossBar(@NotNull @NotNull net.kyori.adventure.bossbar.BossBar bossBar)
      Specified by:
      showBossBar in interface one.tranic.t.base.command.source.CommandSource<org.bukkit.command.CommandSender,org.bukkit.entity.Player>
    • hideBossBar

      public void hideBossBar(@NotNull @NotNull net.kyori.adventure.bossbar.BossBar bossBar)
      Specified by:
      hideBossBar in interface one.tranic.t.base.command.source.CommandSource<org.bukkit.command.CommandSender,org.bukkit.entity.Player>
    • clearBossBars

      public void clearBossBars()
      Specified by:
      clearBossBars in interface one.tranic.t.base.command.source.CommandSource<org.bukkit.command.CommandSender,org.bukkit.entity.Player>
    • showTitle

      public void showTitle(@NotNull @NotNull net.kyori.adventure.title.Title title)
      Specified by:
      showTitle in interface one.tranic.t.base.command.source.CommandSource<org.bukkit.command.CommandSender,org.bukkit.entity.Player>
    • clearTitle

      public void clearTitle()
      Specified by:
      clearTitle in interface one.tranic.t.base.command.source.CommandSource<org.bukkit.command.CommandSender,org.bukkit.entity.Player>
    • asPlayer

      @Nullable public @Nullable BukkitPlayer asPlayer()
      Specified by:
      asPlayer in interface one.tranic.t.base.command.source.CommandSource<org.bukkit.command.CommandSender,org.bukkit.entity.Player>