4142434445464748
text = text.trim(); String[] text2 = text.split(" "); Player p = ((Server) VanillaPlugin.getInstance().getEngine()).getPlayer(text2[text2.length - 1], false); if (p != null) { session.send(new PlayerTabCompleteMessage(p.getName())); } }
40414243444546
} @Override public PlayerTabCompleteMessage decode(ByteBuf buffer) { String message = VanillaByteBufUtils.readString(buffer); return new PlayerTabCompleteMessage(message); }