mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Fix serious issue letting players delete other homes
This commit is contained in:
1 parent
5b603e64b5
commit
c7bf8907bc
2 files changed
+2
-2
No files matched your search
@@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>me.William278</groupId>
|
||||
<artifactId>HuskHomes</artifactId>
|
||||
<version>2.8.1</version>
|
||||
<version>2.8.2</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>HuskHomes</name>
|
||||
|
||||
@@ -177,7 +177,7 @@ public class SettingHandler {
|
||||
|
||||
// Delete a home
|
||||
public static void deleteHome(Player player, String ownerName, String homeName) {
|
||||
if (ownerName.equalsIgnoreCase(player.getName())) {
|
||||
if (!ownerName.equalsIgnoreCase(player.getName())) {
|
||||
if (!player.hasPermission("huskhomes.delhome.other")) {
|
||||
MessageManager.sendMessage(player, "error_no_permission");
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user