Enum defined and database work started.

This commit is contained in:
2023-08-14 12:48:05 -04:00
parent e2add187fd
commit 231d8810c8
4 changed files with 47 additions and 92 deletions
@@ -1884,8 +1884,6 @@ public class ClientMessagePump implements NetMsgHandler {
break;
case CHECKUNIQUEGUILD:
break;
case CREATEPETITION:
break;
case CANCELGUILDCREATION:
break;
case LEAVEREQUEST:
@@ -14,21 +14,20 @@ public class PetitionReceivedMsgHandler extends AbstractClientMsgHandler {
@Override
protected boolean _handleNetMsg(ClientNetMsg msg, ClientConnection origin) throws MsgSendException {
if(msg == null)
if (msg == null)
return false;
if(origin == null)
if (origin == null)
return false;
Petition report = new Petition(msg,origin);
if(report == null){
Petition report = new Petition(msg, origin);
if (report == null)
return false;
}
try {
report.updateDatabase();
}
catch(Exception e){
} catch (Exception e) {
return false;
}
return true;