forked from MagicBane/Server
Enum defined and database work started.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user