Refactored API events

No longer allows tp requests to self (Fixes #6)
This commit is contained in:
William278 committed 2021-01-04 11:20:49 +00:00
1 parent 67781edd22
commit 198438c925
20 files changed
+44 -40

No files matched your search

@@ -439,7 +439,9 @@ public class dataManager {
public static void updateHomeLocation(String ownerName, String homeName, Location newLocation) {
Integer playerID = getPlayerId(ownerName);
deleteHomeTeleportLocation(playerID, homeName);
if (!HuskHomes.settings.getStorageType().equalsIgnoreCase("mySQL")) {
deleteHomeTeleportLocation(playerID, homeName);
}
database.setHomeTeleportPoint(homeName, playerID, new TeleportationPoint(newLocation, HuskHomes.settings.getServerID()));
}