Solved God mode using Skript

  • 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 community!

    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.

Kolombooo

Active Member
Dec 3, 2020
51
3
8
Hi. I am making special Skript that teleports all players to one place and i want them to get essentials god mode (/god) using Skript. Does someone knows how?
 
I dont believe you can directly give all the players god mode in skript, but you can loop all players then execute console command "/god %loop-player%":emoji_slight_smile:
 
No need to give them god mode permission directly, but you can definitely use
Code:
on damage:
event, then cancel event after.
Simply loop all players and add the loop-player to list variable (in command), and then use
Code:
if {variable::whatever} contains victim
in on damage event.

In the loop all players, use
Code:
teleport loop-player to X Y Z in "someworld"
 
Status
Not open for further replies.