-
Notifications
You must be signed in to change notification settings - Fork 1
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.
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.
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.