1.8 Invisibility bug?

Status
This thread has been locked.

Notifyz

x
Banned
Feedback score
128
Posts
2,523
Reactions
2,639
Resources
0
Hey,

so recently me and my friends found out that on server(1.7.10 spigot/paper/bukkit version) if player has invisibility potion active and you join through 1.8 you do not see player but you do see his nametag, so 1.8 clients can see users which are invisible.
64923b50bab139014965aaf14169ed8b.png
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Missionary

Premium
Feedback score
2
Posts
313
Reactions
245
Resources
0
then help him
To what code a fix to stop the nametag issue or disallow certain players to join the server? The first one is just to send a packet to all clients that aren't in the players Faction or allied factions to remove the players PlayerInfo (PacketOutPlayerInfo), then when the invis goes away resend the packets. Probably would take some messing with to get working perfectly. The other one is to get the CraftPlayer's playerConnection and get their client version from there, not hard. Just really depends on what you want to do, disallow 1.8 with the problems it brings (a percentage of hacked clients are 1.8, this nametags bug) or have someone fix your scoreboard to patch this bug. I'm not gonna 'spoon feed' anyone but here's the general idea of what to do, if you know Java and the various apis related with mineman coding it's pretty simple.
 

Notifyz

x
Banned
Feedback score
128
Posts
2,523
Reactions
2,639
Resources
0
LOL, you can check what version they are using and deny login based on that factor. It's very very simple code.
It is simple as you said but I do not want to block users playing on 1.8.
Oh and by the way I tried getting version and I think this is what you meant right?
Player player;
if (((CraftPlayer) player).getHandle().playerConnection.networkManager.getVersion() >= 47) {

}[DOUBLEPOST=1498818634][/DOUBLEPOST]
You're not a developer then.[DOUBLEPOST=1498803928][/DOUBLEPOST]If you lack the ability to think logically about this little task I feel sorry for you wasting your time.
May I ask what problems do you have?
So if I cannot get something working you have to start trashing I am not developer and that I cannot think logically?
You think that reply you wrote touched me?
Try helping and stop acting like a dickhead.
 
Last edited:
Banned forever. Reason: Scamming (https://builtbybit.com/threads/notifyz-scam-report.515571/)

Hxstile

Supreme
Feedback score
5
Posts
134
Reactions
79
Resources
0
It is simple as you said but I do not want to block users playing on 1.8.
Oh and by the way I tried getting version and I think this is what you meant right?
Player player;
if (((CraftPlayer) player).getHandle().playerConnection.networkManager.getVersion() >= 47) {

}[DOUBLEPOST=1498818634][/DOUBLEPOST]
May I ask what problems do you have?
So if I cannot get something working you have to start trashing I am not developer and that I cannot think logically?
You think that reply you wrote touched me?
Try helping and stop acting like a dickhead.

Protocol Version Numbers: http://wiki.vg/Protocol_version_numbers
 

Edvio

Feedback score
8
Posts
351
Reactions
113
Resources
0
I think I know a way of fixing this, add me on skype @ edvioz
 

Notifyz

x
Banned
Feedback score
128
Posts
2,523
Reactions
2,639
Resources
0
Code:
@EventHandler
public void onLogin(PlayerLoginEvent event) {
  CraftPlayer player = (CraftPlayer) event.getPlayer();
  int version = player.getHandle().playerConnection.networkManager.getVersion();
  if (version < 4 || version > 5) {
    event.disallow(Result.KICK_BANNED, "Sorry, your client version is not supported by our server.\nPlease consider using Minecraft 1.7.");
  }
}

EDIT: SHIT THAT WAS A NECRO
Already got it and yeah it's old but don't worry imma close thread :p
 
Banned forever. Reason: Scamming (https://builtbybit.com/threads/notifyz-scam-report.515571/)
Status
This thread has been locked.
Top