forked from MagicBane/Server
Project cleanup pre merge.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
// www.magicbane.com
|
||||
|
||||
|
||||
package engine.jobs;
|
||||
package engine.jobs;
|
||||
|
||||
import engine.Enum;
|
||||
import engine.Enum.PortalType;
|
||||
@@ -15,32 +15,32 @@ import engine.job.AbstractScheduleJob;
|
||||
import engine.objects.Building;
|
||||
import engine.objects.Runegate;
|
||||
import org.pmw.tinylog.Logger;
|
||||
|
||||
|
||||
public class CloseGateJob extends AbstractScheduleJob {
|
||||
|
||||
private final Building building;
|
||||
private final Enum.PortalType portalType;
|
||||
private final Building building;
|
||||
private final Enum.PortalType portalType;
|
||||
|
||||
public CloseGateJob(Building building, PortalType portalType) {
|
||||
public CloseGateJob(Building building, PortalType portalType) {
|
||||
|
||||
super();
|
||||
this.building = building;
|
||||
this.portalType = portalType;
|
||||
}
|
||||
super();
|
||||
this.building = building;
|
||||
this.portalType = portalType;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doJob() {
|
||||
|
||||
if (building == null) {
|
||||
Logger.error("Rungate building was null");
|
||||
return;
|
||||
}
|
||||
@Override
|
||||
protected void doJob() {
|
||||
|
||||
Runegate._runegates.get(building.getObjectUUID()).deactivatePortal(portalType);
|
||||
}
|
||||
if (building == null) {
|
||||
Logger.error("Rungate building was null");
|
||||
return;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void _cancelJob() {
|
||||
}
|
||||
Runegate._runegates.get(building.getObjectUUID()).deactivatePortal(portalType);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void _cancelJob() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user