Results 1 to 1 of 1
Thread: get client action from bytes
- 02-14-2011, 06:22 PM #1
Member
- Join Date
- Mar 2010
- Posts
- 9
- Rep Power
- 0
get client action from bytes
Hi.
I have a "minecraft" server in my pc. and i am writing a tunnel to block some actions from the players.
so, the client's connect to my program, and i foward all bytes received, to the server, and the same when the server send something to the client.
It works, i can play the game with the tunnel working, and print only the bytes that the client send to the server.Java Code:while ((bytesRead = In.read(byteBuffer)) != -1) { if (Debug.dmode && isClient ) { //System.out.println("byte %d" + totalBytesMoved); //System.out.println(stringToHex(new String(byteBuffer))); //System.out.println(byteBuffer[0]); } Out.write(byteBuffer, 0, bytesRead); Out.flush(); }
The problem is, i want to block an specific action, (destroying block from a certain area - if you know the game), and i cant understand the actions from the bytes.. i tried so many times to see the bytes, but look like its not the same to same action, because maybe the content, like position of the player, are in 2 or more bytes.
anybody have any idea of how to do it?
Thx for all.
sorry for the english
Similar Threads
-
HTTP Status 404 - There is no Action mapped for action name showmainframe...
By vaibhavspawar in forum Advanced JavaReplies: 3Last Post: 08-19-2010, 08:27 AM -
send bytes from client to server
By 0xHexaDecimal in forum NetworkingReplies: 41Last Post: 06-04-2010, 02:17 PM -
XOR operation on bytes
By divyanshu023 in forum New To JavaReplies: 1Last Post: 09-17-2009, 07:11 PM -
midi bytes
By willemjav in forum Advanced JavaReplies: 77Last Post: 07-29-2008, 03:10 PM -
how to know the number of bytes
By gabriel in forum New To JavaReplies: 2Last Post: 08-06-2007, 05:13 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks