Class StStatusCommand

java.lang.Object
com.storytimeproductions.stweaks.commands.StStatusCommand
All Implemented Interfaces:
org.bukkit.command.CommandExecutor

public class StStatusCommand extends Object implements org.bukkit.command.CommandExecutor
Command for checking the player's current playtime status.

This command retrieves and displays the amount of time a player has played for the current day and compares it against the required playtime as set in the plugin settings for that specific player.

  • Constructor Summary

    Constructors
    Constructor
    Description
    StStatusCommand(org.bukkit.plugin.java.JavaPlugin plugin)
    Constructor for the StStatusCommand class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args)
     
    static void
    openPlayerManageInventory(org.bukkit.entity.Player admin, org.bukkit.entity.Player target, org.bukkit.plugin.Plugin plugin)
    Opens a 27-slot inventory for the player to manage another player's playtime.

    Methods inherited from class java.lang.Object

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

    • StStatusCommand

      public StStatusCommand(org.bukkit.plugin.java.JavaPlugin plugin)
      Constructor for the StStatusCommand class.
      Parameters:
      plugin - The JavaPlugin instance.
  • Method Details

    • onCommand

      public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args)
      Specified by:
      onCommand in interface org.bukkit.command.CommandExecutor
    • openPlayerManageInventory

      public static void openPlayerManageInventory(org.bukkit.entity.Player admin, org.bukkit.entity.Player target, org.bukkit.plugin.Plugin plugin)
      Opens a 27-slot inventory for the player to manage another player's playtime.
      Parameters:
      admin - The player who is managing the other player's playtime.
      target - The player whose playtime is being managed.
      plugin - The JavaPlugin instance.