forked from MagicBane/Server
Enum defined and database work started.
This commit is contained in:
@@ -15,7 +15,6 @@ import engine.math.Vector3fImmutable;
|
|||||||
import engine.net.client.ClientConnection;
|
import engine.net.client.ClientConnection;
|
||||||
import engine.net.client.msg.ClientNetMsg;
|
import engine.net.client.msg.ClientNetMsg;
|
||||||
import engine.net.client.msg.PetitionReceivedMsg;
|
import engine.net.client.msg.PetitionReceivedMsg;
|
||||||
import org.joda.time.DateTime;
|
|
||||||
import org.pmw.tinylog.Logger;
|
import org.pmw.tinylog.Logger;
|
||||||
|
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
@@ -28,7 +27,6 @@ public class Petition extends AbstractGameObject {
|
|||||||
public Account reportAccount;
|
public Account reportAccount;
|
||||||
public PlayerCharacter reportPlayer;
|
public PlayerCharacter reportPlayer;
|
||||||
public Vector3fImmutable playerLocation;
|
public Vector3fImmutable playerLocation;
|
||||||
public DateTime reportTime;
|
|
||||||
public String message;
|
public String message;
|
||||||
|
|
||||||
public Petition(ClientNetMsg msg, ClientConnection origin){
|
public Petition(ClientNetMsg msg, ClientConnection origin){
|
||||||
@@ -37,7 +35,6 @@ public class Petition extends AbstractGameObject {
|
|||||||
this.reportAccount = origin.getAccount();
|
this.reportAccount = origin.getAccount();
|
||||||
this.reportPlayer = origin.getPlayerCharacter();
|
this.reportPlayer = origin.getPlayerCharacter();
|
||||||
this.playerLocation = origin.getPlayerCharacter().getLoc();
|
this.playerLocation = origin.getPlayerCharacter().getLoc();
|
||||||
this.reportTime = DateTime.now();
|
|
||||||
this.message = ((PetitionReceivedMsg) msg).getMessage();
|
this.message = ((PetitionReceivedMsg) msg).getMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user