-
Notifications
You must be signed in to change notification settings - Fork 0
Points system commands
Pascal Pohl edited this page Sep 21, 2019
·
3 revisions
Here are some simple commands for the new points system:
This command will let your users request their points account.
{{/sender}} got {{/points[/senderlogin]}} points.
This commmand will let anyone give points to someone else. To use the user will be required to enter a user account to transfer to and the number of points. e.g. !pointstransfer pakl 123
{% if %1 != "" %}
{% if %2 != "" %}
{% if /points[/senderlogin] >= %2 %}
{% sub %2 from /points[/senderlogin] %}
{% add %2 to /points[%1] %}
{{%2}} points were transfered to {{%1}}.
{% else %}
You have not enough points, {{/sender}}. ({{/points[/senderlogin]}})
{% endif %}
{% else %}
You need to specify the amount of points you'd like to transfer.
{% endif %}
{% else %}
You need to specify the user you'd like to transfer the points to.
{% endif %}