Mrcastiel 1,876 Posted December 16, 2016 Report Share Posted December 16, 2016 Haven't seen this command in a few of the new realeases so i'm just going to post it, no h8 O.-O.- Commands.java if (cmd[0].equalsIgnoreCase("switchitemslook")) { player.switchItemsLook(); player.getPackets().sendGameMessage("You are now playing with " + (player.isOldItemsLook() ? "old" : "new") + " item looks."); return true; } Player.java private boolean oldItemsLook; public boolean isOldItemsLook() { return oldItemsLook; } public void switchItemsLook() { oldItemsLook = !oldItemsLook; getPackets().sendItemsLook(); } WorldPacketsEncoder.java public void sendItemsLook() { OutputStream stream = new OutputStream(2); stream.writePacket(player, 159); stream.writeByte(player.isOldItemsLook() ? 1 : 0); session.write(stream); } 1 Link to comment Share on other sites More sharing options...
OfficialLegend 12 Posted February 15, 2017 Report Share Posted February 15, 2017 Nice release. Link to comment Share on other sites More sharing options...
anex98 0 Posted October 24, 2018 Report Share Posted October 24, 2018 Thank you. Link to comment Share on other sites More sharing options...
'Kyle 1 Posted November 20, 2018 Report Share Posted November 20, 2018 Hey, thanks! I will definitely be adding this. Link to comment Share on other sites More sharing options...
Gizmo301 0 Posted March 17, 2022 Report Share Posted March 17, 2022 thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now