This is my skript:
When someone clicks a villager with the paper called "Factions", it teleports everyone online to the server. Here's a video of what is happening:
Can someone help me? And sorry if there's a thread format, I coudn't find it.
Code:
on rightclick on entity:
if event-entity is not villager:
stop
if name of event-entity is "x":
if name of tool of event-player is "&aFactions":
send "&a[GEMS] &fTe trimitem pe %name of tool of player%&f..." to event-player
connect event-player to bungeecord server "factions"
if name of tool of event-player is "&aSkyBlock":
send "&a[GEMS] &fTe trimitem pe %name of tool of player%&f..." to event-player
connect event-player to bungeecord server "skyblock"
if name of tool of event-player is "&aSurvival":
send "&a[GEMS] &fTe trimitem pe %name of tool of player%&f..." to event-player
connect event-player to bungeecord server "survival"
When someone clicks a villager with the paper called "Factions", it teleports everyone online to the server. Here's a video of what is happening:
Can someone help me? And sorry if there's a thread format, I coudn't find it.