mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 01:49:49 -05:00
Merge remote-tracking branch 'origin/master'
# Conflicts: # pom.xml Former-commit-id: 5307e3875140ffe9c6ff48e05f2a15162b27e4f2
This commit is contained in:
commit
184daa48e7
2 files changed
+13
-12
No files matched your search
@@ -131,8 +131,8 @@ public class BlockListener implements Listener {
|
||||
shop.delete();
|
||||
p.sendMessage(MsgUtil.getMessage("success-removed-shop", p));
|
||||
} else if (Util.isWallSign(b.getType())) {
|
||||
if (b instanceof Sign) {
|
||||
Sign sign = (Sign) b;
|
||||
if (b.getState() instanceof Sign) {
|
||||
Sign sign = (Sign) b.getState();
|
||||
if (sign.getLine(0).equals(plugin.getConfig().getString("lockette.private"))
|
||||
|| sign.getLine(0).equals(plugin.getConfig().getString("lockette.more_users"))) {
|
||||
// Ignore break lockette sign
|
||||
|
||||
@@ -1109,17 +1109,18 @@ public class Util {
|
||||
* @param map2 Map2
|
||||
* @return Map1 match Map2
|
||||
*/
|
||||
public static boolean mapMatches(@NotNull Map<?, ?> map1, @NotNull Map<?, ?> map2) {
|
||||
if(!map1.keySet().containsAll(map2.keySet())){
|
||||
return false;
|
||||
public static boolean mapMatches(@NotNull Map<?,?> map1, @NotNull Map<?,?> map2) {
|
||||
for (Object obj : map1.keySet()) {
|
||||
if (!map2.containsKey(obj)) {
|
||||
return false;
|
||||
}
|
||||
if (map1.get(obj) != map2.get(obj)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
for (Object key : map1.keySet()){
|
||||
if(!map2.get(key).equals(map1.get(key))){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Match the list1 and list2
|
||||
|
||||
Reference in new issue
Block a user