- Fix other worlds
- Remove backslashes in escapeString too - Remove unused import
This commit is contained in:
@@ -91,7 +91,7 @@ public class Core {
|
||||
} else {
|
||||
chatColor = ChatColor.RED;
|
||||
}
|
||||
P.sendMessage(ChatColor.GRAY + "[Anura] " + chatColor + Core.getl(id, Core.getPlayerLang(P)));
|
||||
statusMsg(P, id, chatColor);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -56,7 +56,7 @@ public class MySQL {
|
||||
}
|
||||
|
||||
public String escapeString(String text) {
|
||||
return text == null ? "" : text.replace("'", "\\'");
|
||||
return text == null ? "" : text.replace("\\", "").replace("'", "\\'");
|
||||
}
|
||||
|
||||
private Boolean openConnection() {
|
||||
|
||||
@@ -224,7 +224,7 @@ public class Features implements Listener {
|
||||
|
||||
if (this.hasFeature(P, Feature.BOAT) && featureEnabled.get(P).get(Feature.BOAT)) {
|
||||
if (P.getLocation().getBlock().getType().equals(Material.STATIONARY_WATER) && P.getVehicle() == null) {
|
||||
if (P.getLocation().distance(atwCenter) < 30) return;
|
||||
if (P.getWorld().equals(atwCenter.getWorld()) && P.getLocation().distance(atwCenter) < 30) return;
|
||||
Boat b = (Boat) P.getWorld().spawnEntity(event.getTo(), EntityType.BOAT);
|
||||
b.setPassenger(P);
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ public class FlowerPots {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
private int getPotWaitTime(Integer pot) {
|
||||
if (AnuraCore.getInstance().flowerPots.containsKey(pot)) {
|
||||
if (AnuraCore.getInstance().flowerPotsWait.containsKey(pot)) {
|
||||
|
||||
@@ -4,7 +4,6 @@ import de.anura.core.API.Core;
|
||||
import de.anura.core.API.Errors;
|
||||
import de.anura.core.AnuraCore;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.util.UUID;
|
||||
|
||||
import org.bukkit.event.EventHandler;
|
||||
|
||||
Reference in New Issue
Block a user