Addons/script-engine/CCS Roots

Table

SignMeaningSignMeaning
@BBukkit@OObject
@CCaller@PPlayer
@EEntity@RReference
@IItem@SScheduler / Script
@JJava@TTimer
@LList@WWorld
@MMaterial

Descriptions

Bukkit


@B

Returns the staticum of the Bukkit class, so you can call the static methods and get the statical manager objects through it.
Example usage:

players := @B.OnlinePlayers

Caller


@C

Caller, for now.

Entity


@E

Handles entities. Default getter works the following way:
@E::<num> means .get:entityID;

Items


@I

Item manager staticum, you contains the methods to modify and observe certain items. Also contains item sorting methods.

Java


@J

The hardcore java access point, basically works as the reference part of java.

Lists


@L

Handles lists.
Example usage:<<code java>>@L.sort:

Materials


@M

The hardcore java access point, basically works as the reference part of java.

Objects


@O

Stands for object, it's the same as @J right now.

Players


@P

Player manager saticum. Uses:

  • Get online players: @P::
  • Get player by name: @P::<name>
  • Get player by uuid: @P::<uuid>
  • Sort player list: @P.sort:<list>

References


@R

Handles CC variable references. Not the same as java- or object reference.

Script


@S

Script for now. (current script execution?)

Timing


@T

Timer. You can schedule your delayed stuff here.

  • Run later: @T.runLater:(1h, "/stop")
  • Schedule: @T.schedule:(10m, "/save-all")
  • Get tasks: @T.tasks
  • Get certain task: @T::<taskID/taskName>


How to name tasks:

T = @T.schedule:(10m,"/save-all")
T.name:"SaveTask"

Or if you don't need the task object:

@T.schedule:(10m,"/save-all").name:SaveTask

But you still can get the task by its name then:

T = @T::SaveTask

Worlds


@W

World handling.

  • Get the current world: @W::
  • Get a certain world: @W::<name>
  • Set weather to rain: @W::;.weather:=rainy


Execution Structure

Execution Structure


Comments

Posts Quoted:
Reply
Clear All Quotes