1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help pls.....

Discussion in 'Skript' started by VojaFTW, Jul 19, 2017.

Thread Status:
Not open for further replies.
  1. VojaFTW

    VojaFTW Member

    Joined:
    Jun 10, 2017
    Messages:
    42
    Likes Received:
    2
    I use this code to close my event but its not teleport player to spawn and idk if check for players on a list is ok. and also it doesn't remove full event folder only folders is still in %player%'s event-1 is data and region idk why is that happening other files from folder is removed just fine.

    Code (Skript):
    1. command /closeevent:
    2.     permission: cc.command.eventclose
    3.     permission message: &cInvalid permission, sorry.
    4.     trigger:
    5.         loop all players:
    6.             loop-player's world is "plugins/CamCraftCore/CCEvents/%player%'s Event-1"
    7.                 if player is in list {playerlist::*}
    8.                 if player is in list {hosterlist::*}
    9.                     skellett teleport all players to world "./world" spawn
    10.         unload world "plugins/CamCraftCore/CCEvents/%player%'s Event-1"
    11.         wait 2 seconds
    12.         delete folder "plugins/CamCraftCore/CCEvents/%player%'s Event-1/data/"
    13.         delete folder "plugins/CamCraftCore/CCEvents/%player%'s Event-1/region/"
    14.         delete folder "plugins/CamCraftCore/CCEvents/%player%'s Event-1/playerdata"
    15.         wait 2 ticks
    16.         delete file "plugins/CamCraftCore/CCEvents/%player%'s Event-1/level.dat"
    17.         delete file "plugins/CamCraftCore/CCEvents/%player%'s Event-1/uid.dat"
    18.         delete file "plugins/CamCraftCore/CCEvents/%player%'s Event-1/level.dat_old"
    19.         wait 2 ticks
    20.         delete file "plugins/CamCraftCore/CCEvents/%player%'s Event-1/session.lock"
    21.         delete folder "plugins/CamCraftCore/CCEvents/%player%'s Event-1"
    22.         wait 2 ticks
    23.         message "&0[&3&l%{eprefix}%&0] &3Successfully removed your event."
    24.         delete {cc.event.%player%}
    25.         clear {playerlist::*}
    26.         clear {hosterlist::*}
     
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Uhm what?


    did you maybe make a mistake here?
     
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    mistake like??? and before lists and other things tp is working fine but i need lists or groups to store players and event hoster soo maybe if player is in list is error idk and also whyis not removing data and region folder from player's event-1 folder and also folder with all world files???
     
    #3 ShaneBee, Jul 19, 2017
    Last edited by a moderator: Jul 19, 2017
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    uhm im think you want this methode:

    Code (Skript):
    1. set {_w} to yaml value "Event-1" from file "plugins/CamCraftCore/CCEvents/%player%'s.yml"
    2. #then
    3. loop-player's world is "%{_w}%":
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    I can try that is creating file with value event-1 but i need to world name is %player%'s Event-1 but ok i just can remove that check and see how is working and how can i fix removing world i don't get removed data and region in folder ex VojaFTW_'s Event-1 and i mean is error skellett teleport all players to world "world" spawn maybe can't be used all players using skellett teleportation but also i tryed with skript teleportation (teleport all players to spawn of "world") but doesn't work.
     
    #5 ShaneBee, Jul 19, 2017
    Last edited by a moderator: Jul 19, 2017
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    ¯\(x_x)/¯

    teleport loop-player to location at 0, 0, 0, in world "world"
     
  7. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Can't understand condiction/effect teleport loop-player to location at <cordinates> in world
     
Thread Status:
Not open for further replies.

Share This Page

Loading...