mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-18 19:39:10 +00:00
Framework for Client command handling.
This commit is contained in:
1 parent
ed4ce6f930
commit
ab175caa8f
7 files changed
+116
-2
No files matched your search
@@ -0,0 +1,17 @@
|
||||
package mcp.mobius.opis.network;
|
||||
|
||||
public class ClientCommandHandler {
|
||||
|
||||
private static ClientCommandHandler _instance;
|
||||
private ClientCommandHandler(){}
|
||||
|
||||
public static ClientCommandHandler instance(){
|
||||
if(_instance == null)
|
||||
_instance = new ClientCommandHandler();
|
||||
return _instance;
|
||||
}
|
||||
|
||||
public void handle(byte cmd){
|
||||
System.out.printf("Received client cmd with id %s\n", cmd);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user