Class CommandPTime

java.lang.Object
net.lewmc.foundry.command.FoundryCommand
net.lewmc.foundry.command.FoundryPlayerCommand
net.lewmc.essence.environment.CommandPTime
All Implemented Interfaces:
org.bukkit.command.CommandExecutor

public class CommandPTime extends net.lewmc.foundry.command.FoundryPlayerCommand
/ptime command.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for the CommandPTime class.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    onRun(org.bukkit.command.CommandSender cs, org.bukkit.command.Command command, String s, String[] args)
    /bal command handler.
    protected String
    The permission required to run the command.

    Methods inherited from class net.lewmc.foundry.command.FoundryPlayerCommand

    onCommand

    Methods inherited from class net.lewmc.foundry.command.FoundryCommand

    hasPermission

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CommandPTime

      public CommandPTime(Essence plugin)
      Constructor for the CommandPTime class.
      Parameters:
      plugin - References to the main plugin class.
  • Method Details

    • requiredPermission

      protected String requiredPermission()
      The permission required to run the command.
      Specified by:
      requiredPermission in class net.lewmc.foundry.command.FoundryCommand
      Returns:
      String - The permission string.
    • onRun

      protected boolean onRun(org.bukkit.command.CommandSender cs, org.bukkit.command.Command command, String s, String[] args)
      /bal command handler.
      Specified by:
      onRun in class net.lewmc.foundry.command.FoundryCommand
      Parameters:
      cs - Information about who sent the command - player or console.
      command - Information about what command was sent.
      s - Command label - not used here.
      args - The command's arguments.
      Returns:
      boolean true/false - was the command accepted and processed or not?