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

TrademarkTM picture TrademarkTM  路  19Comments

SlimeDog picture SlimeDog  路  20Comments

Govindass picture Govindass  路  24Comments

jaylawl picture jaylawl  路  34Comments

mojang2555 picture mojang2555  路  21Comments