Get skywars arena [skript-mirror]

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Uzumaki

Well-Known Member
Feb 20, 2017
310
10
18
33
How i can get the skywars arena of a player?

there is my code
code_language.skript:
#skywars x
import:
    me.wazup.skywars.Skywars
    me.wazup.skywars.SkywarsAPI as sw
    me.wazup.skywars.events.SWPlayerJoinArenaEvent
 
on SWPlayerJoinArenaEvent:
    set {_p} to event.getPlayer()
    set {_arena} to event.getArenaName() # works
 
# not work
command test:
    trigger:
        set {_x} to sw.isInArena(player) # this is not how you get his arena, but still not work
        broadcast "&e%{_x}%"
 
Last edited:
replace sw.isInArena(player) with sw.isInArena("player")

or do not import as sw and try that api.isInArena("player")
 
code_language.skript:
No matching method: SkywarsAPI#isInArena called with (HinataYT (CraftPlayer))
 
Status
Not open for further replies.