Fixes typos
This commit is contained in:
@ -27,7 +27,7 @@ public class StargateActivateEvent extends StargatePlayerEvent {
|
||||
* @param destination <p>The chosen destination to activate</p>
|
||||
*/
|
||||
public StargateActivateEvent(Portal portal, Player player, List<String> destinations, String destination) {
|
||||
super("StargatActivateEvent", portal, player);
|
||||
super("StargateActivateEvent", portal, player);
|
||||
|
||||
this.destinations = destinations;
|
||||
this.destination = destination;
|
||||
|
@ -19,7 +19,7 @@ public class StargateDeactivateEvent extends StargateEvent {
|
||||
* @param portal <p>The portal which was deactivated</p>
|
||||
*/
|
||||
public StargateDeactivateEvent(Portal portal) {
|
||||
super("StargatDeactivateEvent", portal);
|
||||
super("StargateDeactivateEvent", portal);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -60,13 +60,13 @@ public class VehicleEventListener implements Listener {
|
||||
*/
|
||||
private static void teleportVehicle(List<Entity> passengers, Portal entrancePortal, Vehicle vehicle) {
|
||||
if (!passengers.isEmpty() && passengers.get(0) instanceof Player) {
|
||||
Stargate.logger.info(Stargate.getString("prefox") + "Found passenger vehicle");
|
||||
Stargate.logger.info(Stargate.getString("prefix") + "Found passenger vehicle");
|
||||
teleportPlayerAndVehicle(entrancePortal, vehicle, passengers);
|
||||
} else {
|
||||
Stargate.logger.info(Stargate.getString("prefox") + "Found empty vehicle");
|
||||
Stargate.logger.info(Stargate.getString("prefix") + "Found empty vehicle");
|
||||
Portal destinationPortal = entrancePortal.getDestination();
|
||||
if (destinationPortal == null) {
|
||||
Stargate.logger.warning(Stargate.getString("prefox") + "Unable to find portal destination");
|
||||
Stargate.logger.warning(Stargate.getString("prefix") + "Unable to find portal destination");
|
||||
return;
|
||||
}
|
||||
Stargate.debug("vehicleTeleport", destinationPortal.getWorld() + " " + destinationPortal.getSignLocation());
|
||||
|
Reference in New Issue
Block a user