diamond-rip / Eden

The best free 1.8 1v1 practice plugin - Offers tons of premium features!
GNU General Public License v3.0
110 stars 32 forks source link

fly #436

Closed serumanooo closed 1 year ago

serumanooo commented 1 year ago

i know i already made a suggestion for that, i just want to add more things to it

basically my suggestion is: make a permission that let the players fly when they are at the lobby

(This part is not necessary, its just something i like about other servers i played at) and i want to know if its possible for you to make it like this: if you have this permission, when you join the server or get teleported to the lobby, you spawn already flying, like this: image

ssquadteam commented 1 year ago

Could always use Skript

serumanooo commented 1 year ago

Could always use Skript

How would a skript change the eden lobby spawn location

ssquadteam commented 1 year ago
on join:
  wait 1 second
  if player has permission server.vip:
    set {_vip} to location at (x, y, z) in world "world"
    set pitch of {_vip}'s pitch to 0.1
    set yaw of {_vip}'s yaw to 0.1
    set player's flight mode to true
ssquadteam commented 1 year ago

dont set pitch and yaw to exactly 0 as skript takes 0 as null

serumanooo commented 1 year ago
on join:
  wait 1 second
  if player has permission server.vip:
    set {_vip} to location at (x, y, z) in world "world"
    set pitch of {_vip}'s pitch to 0.1
    set yaw of {_vip}'s yaw to 0.1
    set player's flight mode to true

Does this actually work with eden? I dont know about skripts Anyways, ill try it tomorrow but tbh i dont think this will work perfectly

GoodestEnglish commented 1 year ago

The skript @pixeledge-verify provided is nearly perfect. However there's an issue where player teleports back from match to lobby will not allow to fight.

Back to the original question. Yea I could but I have to fix the "when arena world and lobby world are separated, player cannot fly" problem. Which is in a low priority.

I will close this as of right now. You can open it again after todo enhancement gets less and less. (Can't handle too much stuff 😅)

ssquadteam commented 1 year ago

The skript @pixeledge-verify provided is nearly perfect. However there's an issue where player teleports back from match to lobby will not allow to fight.

Back to the original question. Yea I could but I have to fix the "when arena world and lobby world are separated, player cannot fly" problem. Which is in a low priority.

I will close this as of right now. You can open it again after todo enhancement gets less and less. (Can't handle too much stuff 😅)

That can be fixed simply @serumanooo

Add this-

on world change:
  wait 1 second
  if player has permission "server.vip":
    if player is in world "LobbyWorld": # or if player is in region "LobbyRegion":
      set player's flight mode to true

I guess this should work if not please inform

ssquadteam commented 1 year ago

Also the Spectator Fly in Different world can also be fixed by Skript:

on world change:
  wait 20 ticks
    if player is not in world "LobbyPractice": # or if player is not in region "LobbyRegion":
      if player has red dye:
        allow flight to player

Have been using it on my server with no problems so far.

serumanooo commented 1 year ago

Also the Spectator Fly in Different world can also be fixed by Skript:

on world change:
  wait 20 ticks
    if player is not in world "LobbyPractice": # or if player is not in region "LobbyRegion":
      if player has red dye:
        allow flight to player

Have been using it on my server with no problems so far.

Yes im using this one, ty for the skripts @pixeledge-verify, ill try them, i was afraid that this would not be compatible with eden spawn location

(im not actually using THIS one, but i sent it to a friend and he made this one for me, because the original one isnt compatible with the skript version im using)

player world change: wait 20 ticks player's world is "Arenas" player has red dye: set player's fly mode to true