> For the complete documentation index, see [llms.txt](https://icestonkss-organization.gitbook.io/sumoplugin/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://icestonkss-organization.gitbook.io/sumoplugin/plugin/sumo/skript-implementations/events.md).

# Events

## **Sumo Win**

Når der bliver fundet en vinder af sumo kampen.

{% tabs %}
{% tab title="Syntax" %}

> ```
> [on] sumo win
> ```

{% endtab %}

{% tab title="Event Values" %}

> event-player
> {% endtab %}

{% tab title="Example" %}

<pre class="language-javascript"><code class="lang-javascript">on sumo win:
    add <a data-footnote-ref href="#user-content-fn-1">sumo-prize</a> of diamonds to player's inventory
</code></pre>

{% endtab %}
{% endtabs %}

## Sumo Leave

Når en person leaver sumo.

{% tabs %}
{% tab title="Syntax" %}

> ```
> [on] sumo leave
> ```

{% endtab %}

{% tab title="Event Values" %}

> event-player
> {% endtab %}

{% tab title="Example" %}

```java
on sumo leave:
    broadcast "&8[ &d&bSUMO &f&lEVENT &8] &f%player% leavede sumo.
```

{% endtab %}
{% endtabs %}

## Sumo Join

Når en person joiner sumo

{% tabs %}
{% tab title="Syntax" %}

> ```java
> [on] sumo join
> ```

{% endtab %}

{% tab title="Event Values" %}

> event-player
> {% endtab %}

{% tab title="Example" %}

```java
on sumo join:
    if {combat::%player's uuid%} > 0:
        cancel event
        send "&cDu må ikke være i combat"
```

{% endtab %}
{% endtabs %}

## Sumo Elimination

Når en person bliver eliminated fra sumo.

{% tabs %}
{% tab title="Syntax" %}

> ```java
> [on] sumo elimination
> ```

{% endtab %}

{% tab title="Event Values" %}
event-player
{% endtab %}

{% tab title="Example" %}

```java
on sumo elimination:
    broadcast "%player% blev eliminated"
```

{% endtab %}
{% endtabs %}

[^1]: An expression that can be used in sumo events
