Definition at line 41 of file cs_deserter.cpp.
◆ deserter_commandscript()
deserter_commandscript::deserter_commandscript |
( |
| ) |
|
|
inline |
◆ GetCommands()
◆ HandleDeserterAdd()
static bool deserter_commandscript::HandleDeserterAdd |
( |
ChatHandler * |
handler, |
|
|
uint32 |
time, |
|
|
bool |
isInstance |
|
) |
| |
|
inlinestatic |
Applies the Deserter Debuff to a player.
This function applies a Deserter Debuff of the given type (Instance or BG) to the selected player, with the provided duration in seconds.
- Parameters
-
handler | The ChatHandler, passed by the system. |
time | The provided duration in seconds. |
isInstance | provided by the relaying functions, so we don't have to write that much code :) |
- Returns
- true if everything was correct, false if an error occured.
Example Usage:
.deserter instance add 3600 (one hour)
-or-
.deserter bg add 3600 (one hour)
Definition at line 95 of file cs_deserter.cpp.
◆ HandleDeserterBGAdd()
static bool deserter_commandscript::HandleDeserterBGAdd |
( |
ChatHandler * |
handler, |
|
|
uint32 |
time |
|
) |
| |
|
inlinestatic |
◆ HandleDeserterBGRemove()
static bool deserter_commandscript::HandleDeserterBGRemove |
( |
ChatHandler * |
handler | ) |
|
|
inlinestatic |
◆ HandleDeserterInstanceAdd()
static bool deserter_commandscript::HandleDeserterInstanceAdd |
( |
ChatHandler * |
handler, |
|
|
uint32 |
time |
|
) |
| |
|
inlinestatic |
◆ HandleDeserterInstanceRemove()
static bool deserter_commandscript::HandleDeserterInstanceRemove |
( |
ChatHandler * |
handler | ) |
|
|
inlinestatic |
◆ HandleDeserterRemove()
static bool deserter_commandscript::HandleDeserterRemove |
( |
ChatHandler * |
handler, |
|
|
bool |
isInstance |
|
) |
| |
|
inlinestatic |
Removes the Deserter Debuff from a player.
This function removes a Deserter Debuff of the given type (Instance or BG) from the selected player.
- Parameters
-
handler | The ChatHandler, passed by the system. |
isInstance | provided by the relaying functions, so we don't have to write that much code :) |
- Returns
- true if everything was correct, false if an error occured.
Example Usage:
.deserter instance remove
-or-
.deserter bg remove
Definition at line 144 of file cs_deserter.cpp.
The documentation for this class was generated from the following file: