mirror of
				https://github.com/proxiodev/RedisBungee.git
				synced 2025-11-04 09:38:03 +00:00 
			
		
		
		
	Fixes to SLP.
This commit is contained in:
		
							parent
							
								
									23944f7313
								
							
						
					
					
						commit
						bb97d35076
					
				@ -322,11 +322,11 @@ public class RedisBungee extends Plugin implements Listener {
 | 
			
		||||
        List<ServerPing.PlayerInfo> players = new ArrayList<>();
 | 
			
		||||
        for (String player : getPlayers()) {
 | 
			
		||||
            // TODO: Find a better way of doing the UUIDs - right now I'm simply flunking it rather badly.
 | 
			
		||||
            players.add(new ServerPing.PlayerInfo(player, new UUID(player.hashCode() + System.currentTimeMillis(), player.hashCode() + System.nanoTime()).toString()));
 | 
			
		||||
            players.add(new ServerPing.PlayerInfo(player, "aaaa"));
 | 
			
		||||
        }
 | 
			
		||||
        ServerPing reply = new ServerPing();
 | 
			
		||||
        reply.setPlayers(new ServerPing.Players(players.size(), old.getPlayers().getMax()));
 | 
			
		||||
        reply.setSample((ServerPing.PlayerInfo[]) players.toArray());
 | 
			
		||||
        reply.setPlayers(new ServerPing.Players(old.getPlayers().getMax(), players.size()));
 | 
			
		||||
        reply.setSample(players.toArray(new ServerPing.PlayerInfo[players.size()]));
 | 
			
		||||
        reply.setDescription(old.getDescription());
 | 
			
		||||
        reply.setFavicon(old.getFavicon());
 | 
			
		||||
        reply.setVersion(old.getVersion());
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user