Hot Summer Deals are Here!
Celebrate with up to 90% off on 16,700 resources
04
Days
06
Hours
58
Mins
27
Secs

Help

Status
This thread has been locked.
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Hatersgunnahate

Feedback score
0
Posts
65
Reactions
2
Resources
0
giphy.gif
Mhm I see I should create a magical robe to make the players dissapear
 

Hatersgunnahate

Feedback score
0
Posts
65
Reactions
2
Resources
0
Do you mean while they are in arena or on lobby?
In the arena as I'm going to do many duels in one arena.
if(command.getName().equalsIgnoreCase("vanish")){ // this is the command
if (sender instanceof Player){ // checks if the person who used the command is a player (not console)
if(args.length == 0) { // if they don't specify a player name
for(Player allPlayers : getServer().getOnlinePlayers()) {
playerToHide.hidePlayer(allPlayers); //hide from all players
playerToHide.sendMessage(ChatColor.GREEN + "You have vanished!");
}
}
}
}

when you type /vanish you will vanish (idk if this is what you meant but this is how you vanish
I know you can do that but it doesn't hide potions and other things I think.
 

Ritzzzez

Feedback score
0
Posts
83
Reactions
26
Resources
0
for (Player AllOnline : Bukkit.getOnlinePlayers())
{
AllOnline.hidePlayer(Player)
}
for (PotionEffect effect : player.getActivePotionEffects())
{
player.removePotionEffect(effect.getType());
}
 
Status
This thread has been locked.
Top