Skip to content

Custom Classes

John Bostick edited this page Sep 13, 2021 · 1 revision

Custom Classes

Custom Classes is a feature of EasyEvents that allows you to create custom classes that can be used by commands that accept class Ids. One use of custom classes is to allow you to create groups of players that you can run certain commands on. For example, you could create a class called "HCZScientist" that has a 20% chance of spawning in. Then, you could spawn them in HCZ and give them special items that normal scientists don't have.

Usage

To use a custom class in a command, you can replace a class ID with your custom class ID, prefixed by "g:" (for example, if your custom class ID is "HCZScientist", you would use "g:HCZScientist"). The command will only apply its action to members of that group.

Example

To do the example in the first section, use this:

roundlock

createclass HCZScientist 6
spawn g:HCZScientist,20 6
teleport g:HCZScientist,HCZ_ARMORY

For more details on using the createclass command, go here.

Clone this wiki locally