Skript: Suggestion: get/set player's spectator target

Created on 4 Jul 2018  路  2Comments  路  Source: SkriptLang/Skript

command /spectate <player>:
    trigger:
        if command sender's spectator target is set:
            send "You're already spectating"
        else:
            set command sender's gamemode to spectator #why not automatically do this on setting the latter expression
            set command sender's spectator target to arg 1

https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Player.html#getSpectatorTarget--

Seeing this is already a spigot/bukkit method, i'm hoping this would be easy to implement.
Cheers!

enhancement lowest

Most helpful comment

holy shit that was fast. made me happy, thanks for your work!

All 2 comments

Added for next release

holy shit that was fast. made me happy, thanks for your work!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TheClassic36 picture TheClassic36  路  3Comments

Anarchick picture Anarchick  路  3Comments

Snow-Pyon picture Snow-Pyon  路  4Comments

ghost picture ghost  路  3Comments

MrScopes picture MrScopes  路  3Comments