Usage

Usage Overview

I recommend using @PAUSE 0.5 between commands to prevent any variable mixups.

Timestamps

@CMDCON timestamp

This will print the current date and time into the variable $time.current

Example script using this:

    - '@CMDCON timestamp'
    - '@PAUSE 0.5
    - '@SETSTR $checked.<playername> <var:$time.current>'
    - '@PLAYER <var:$checked.<playername>>'

Player Nicknames

Reference those essentials or other nicknames everyone's running around with these days.

@CMDCON getnick <playername>

Example script:

    - '@CMDCON getnick <playername>'
    - '@PAUSE 0.5'
    - '@PLAYER <var:$nick.<playername>>'

String Building

Tired of having to use <cmdarg:2> <cmdarg:3>.. etc to build a reason?

@CMDCON stringbuilder <number> <message> ex: @CMDCON stringbuilder 1 Hey guys!

The example above would store "guys!" into the variable $string.current

Example usage:

  kick:
    Override: true
    Script:
    - '@CMDCON stringbuilder 1 <cmdline>'
    - '@PAUSE 0.5'
    - '@CMDOP kick <cmdarg:1> <var:$string.current>'

No more argument testing to see how long the reason was! Putting a "1" after stringbuilder means that everything after the first arg, which in this case is the name of the player, will be converted to the string $string.current, which can be moved to a permanent value later on in your script like I did for the timestamp.

Item Names

Want to grab the name of the item you're holding, and even get the display name from an anvil? Just use @CMDOP itemname, which stores the item you are holding (in readable, user-friendly format) in the string $itemname.current. Here's an example script.

    - '@CMDOP itemname'
    - '@PAUSE 0.5'
    - '@PLAYER You are holding a <var:$itemname.current>!'

Review - General Overview

  • @CMDCON timestamp = $time.current
  • @CMDCON getnick <playername> = $nick.<playername>
  • @CMDCON stringbuilder <number> <message> = $string.current
  • @CMDOP itemname = $itemname.current

Comments

Posts Quoted:
Reply
Clear All Quotes