Punish - Variables

May 20, 2016
Punish - Variables
  • This is an up-to-date list of the current variables in Punish.

    Punisher Variables:

    %punisher_name% = Player name
    %punisher_ip% = Player IP
    %punisher_online% = true or false depening on whether the player is online
    %reason% = Universal reason variable
    %punisher_current_reason_ban% = Reason for currently being muted
    %punisher_current_reason_mute% = Reason for currently being banned
    %punisher_jailed% = true or false whether or not the player is in jail
    %punisher_muted% = true or false whether or not the player is muted
    %punisher_banned% true or false whether or not the player is banned
    %punisher_ban_time_formatted% = time left until unbanned in X Days X Hours X Minutes X Seconds format
    %punisher_ban_time% = time left until unbanned in minutes
    %punisher_mute_time_formatted% = time left until unmuted in X Days X Hours X Minutes X Seconds format
    %punisher_mute_time% = time left until unmuted in minutes
    %punisher_jail_time_formatted% = time left until unjailed in X Days X Hours X Minutes X Seconds format
    %punisher_jail_time% = time left until unjailed in minutes
    %punisher_uuid% = Players UUID
    %punisher_warnings% = Amount of warnings player has
    %punisher_time_until_warnings_reset% = Amount of time until warnings reset in minutes
    %punisher_time_until_warnings_reset_formatted% = time left until warnings reset in X Days X Hours X Minutes X Secondsformat
    %punisher_banned_on% = date and time when ban was issued
    %punisher_muted_on% = date and time the mute was issued
    %punisher_jailed_on% = date and time jailing was issued


    Target Variables:

    %target_name% = Player name
    %target_ip% = Player IP
    %target_online% = true or false depening on whether the player is online
    %target_current_reason_ban% = Reason for currently being muted
    %target_current_reason_mute% = Reason for currently being banned
    %target_jailed% = true or false whether or not the player is in jail
    %target_muted% = true or false whether or not the player is muted
    %target_banned% true or false whether or not the player is banned
    %target_ban_time_formatted% = time left until unbanned in X Days X Hours X Minutes X Seconds format
    %target_ban_time% = time left until unbanned in minutes
    %target_mute_time_formatted% = time left until unmuted in X Days X Hours X Minutes X Seconds format
    %target_mute_time% = time left until unmuted in minutes
    %target_jail_time_formatted% = time left until unjailed in X Days X Hours X Minutes X Seconds format
    %targets_jail_time% = time left until unjailed in minutes
    %target_uuid% = Players UUID
    %target_warnings% = Amount of warnings player has
    %target_time_until_warnings_reset% = Amount of time until warnings reset in minutes
    %target_time_until_warnings_reset_formatted% = time left until warnings reset in X Days X Hours X Minutes X Seconds format
    %target_banned_on% = date and time when ban was issued
    %target_muted_on% = date and time the mute was issued
    %target_jailed_on% = date and time jailing was issued


    Item Variables:

    %item_id% = ID of the item: id:data
    %item_display_name% = Display name of the item
    %item_slot% = slot the item is placed in
    %item_action% = action associated with the item
    %item_message_to_punisher% = message to send to punisher
    %item_message_to_target% = message to send to target
    %item_menu% = menu to send to when clicked
    %item_time% = time for ban, mute, jail when clicked
    %item_actionbar% = message sent on actionbar when clicked
    %item_title% = title sent when the item is clicked
    %item_subtitle% = subtitle sent when item is clicked
    %item_ban_message% = ban message when banning
    %item_kick_message% = kick message when kicking
    %item_broadcast% = broadcast message sent to server
    %item_permission% = the permission needed to use the item
    %item_time_informatted% = get the time directly from the config


    Plugin Variables:

    %punish_max_warns% = amount of max warns defined in config


    Other Variables:


    %onlinePlayers% = the amount of players online

    BanChecker Variables:

    %amount% = Amount of bans the player has
    %playerName% = Name of the player

    Dependency Variables:

    PlaceholderAPI: If Punish detects PlaceholderAPI all the variables from it can be used in punish. Note: You can not use PlaceholderAPI variables for the punisher, only the target player
  • Loading...
  • Loading...