Cancelling tab completion for staffs

Status
This thread has been locked.

M4T14SG4M3R

PapuHost Game Hosting CEO
Premium
Feedback score
0
Posts
278
Reactions
77
Resources
0
Hi, i'm coding a vanish plugin and i can't use the method PacketPlayOutPlayerInfo(EnumPlayerInfoAction.REMOVE_PLAYER, (((CraftPlayer)e.getPlayer()).getHandle())); because i'm using 1.7 and it says that the method was not found even with protocollib, i've hidden the staff members and tabbing from commands like /msg /r etc, but i want to know if is possible to hide them if for example i press "m" and there are players named Meme1, Meme2, Meme3 and let's say Meme3 has permission "hcf.staff", is there a way to remove them from chat tab?
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

M4T14SG4M3R

PapuHost Game Hosting CEO
Premium
Feedback score
0
Posts
278
Reactions
77
Resources
0
That's not the point, i want to remove the players that have a specfic permission from chat tabbing, not every tab, also i already have that option on -1 and players can still type a word and press tab to get every player starting with that word
upload_2019-7-13_10-55-19.png
 

Attachments

  • upload_2019-7-13_10-55-19.png
    upload_2019-7-13_10-55-19.png
    7.7 KB · Views: 559

Cole

Developer
Supreme
Feedback score
19
Posts
943
Reactions
477
Resources
0
Just use p.hidePlayer(player) and it will remove them from tab and stop tab completion
 

Mark4234

Feedback score
1
Posts
9
Reactions
0
Resources
0
The thing i did is solve the tab completion problem in the proxy.
That means you will listen to a tabcomplete event in bungeecord and make a custom tab completion.
I'm using this to override the tabcompletion by replacing the player's name with his disguise or by not showing him in the completion at all.
This will work only with bungeecord.

I'm pretty sure it's easier in spigot and u can still use protocollib to listen to that tab completion packet.
Add if u are interested:
Jacko#4308
 

M4T14SG4M3R

PapuHost Game Hosting CEO
Premium
Feedback score
0
Posts
278
Reactions
77
Resources
0
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/server/TabCompleteEvent.html
Don't know if its in 1.7.10 but a 1.8.8 spigot is recommended over a 1.7.10 one anyway (pretty sure it's in 1.8.8)
I'm running an HCF server, most of HCF servers are 1.7 based and i can't update to 1.8

Just use p.hidePlayer(player) and it will remove them from tab and stop tab completion
That doesn't work, that is the method that i use for hiding the players when they enter the vanish mode and it doesn't stop them from chat tab and they are not being removed from tab
 

LillianA

beep boop
Premium
Feedback score
7
Posts
347
Reactions
259
Resources
0
I'm running an HCF server, most of HCF servers are 1.7 based and i can't update to 1.8


That doesn't work, that is the method that i use for hiding the players when they enter the vanish mode and it doesn't stop them from chat tab and they are not being removed from tab
Every HCF server I've ever developed used a forked ProtocolSupport to allow 1.7.10 clients to join on 1.8, I don't know if the method is in 1.7.10 Spigot all you can do is look.
 

M4T14SG4M3R

PapuHost Game Hosting CEO
Premium
Feedback score
0
Posts
278
Reactions
77
Resources
0
Every HCF server I've ever developed used a forked ProtocolSupport to allow 1.7.10 clients to join on 1.8, I don't know if the method is in 1.7.10 Spigot all you can do is look.
I looked at tue spigot but there is no REMOVE_PLAYER method, it is included in 1.8 but i can't update to 1.8 because the plugin needs custom events of this spigot and i don't have the source code of the spigot, a temp fix that i did is setting the playerTabListName() to 16 random numbers but it still displays the player's head on tab when i press it
 

Cole

Developer
Supreme
Feedback score
19
Posts
943
Reactions
477
Resources
0
I'm running an HCF server, most of HCF servers are 1.7 based and i can't update to 1.8


That doesn't work, that is the method that i use for hiding the players when they enter the vanish mode and it doesn't stop them from chat tab and they are not being removed from tab
That's weird because it does for me and many other people, what spigot are you using?
 

thread

dev
Premium
Feedback score
18
Posts
152
Reactions
96
Resources
1
In 1.7 versions of spigot you use PacketPlayOutPlayerInfo.addPlayer(entityPlayer); this will return the packet that you need to send.
 

M4T14SG4M3R

PapuHost Game Hosting CEO
Premium
Feedback score
0
Posts
278
Reactions
77
Resources
0
That's weird because it does for me and many other people, what spigot are you using?
PaperSpigot 1.7 and zSpigot in some gamemodes
In 1.7 versions of spigot you use PacketPlayOutPlayerInfo.addPlayer(entityPlayer); this will return the packet that you need to send.
I will check what i cando with that, thanks
 
Status
This thread has been locked.
Top