Fixes typos

This commit is contained in:
2021-10-08 23:23:06 +02:00
parent 0c29788a31
commit 2fec641d9d
4 changed files with 12 additions and 12 deletions

View File

@ -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;

View File

@ -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);
}
/**

View File

@ -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());