Ask who listens for updates, fix underscore disguises not working
This commit is contained in:
		| @@ -174,6 +174,15 @@ public class LibsDisguises extends JavaPlugin { | |||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|         }); |         }); | ||||||
|  |  | ||||||
|  |         final boolean updates = getConfig().getBoolean("NotifyUpdate"); | ||||||
|  |  | ||||||
|  |         metrics.addCustomChart(new Metrics.SimplePie("updates") { | ||||||
|  |             @Override | ||||||
|  |             public String getValue() { | ||||||
|  |                 return updates ? "Enabled" : "Disabled"; | ||||||
|  |             } | ||||||
|  |         }); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     @Override |     @Override | ||||||
|   | |||||||
| @@ -185,7 +185,7 @@ public class DisguiseParser { | |||||||
|  |  | ||||||
|     public static DisguisePerm getDisguisePerm(String name) { |     public static DisguisePerm getDisguisePerm(String name) { | ||||||
|         for (DisguisePerm perm : getDisguisePerms()) { |         for (DisguisePerm perm : getDisguisePerms()) { | ||||||
|             if (!perm.toReadable().equalsIgnoreCase(name) && !perm.toReadable().replace(" ", "").equalsIgnoreCase(name)) |             if (!perm.toReadable().replaceAll("[ |_]", "").equalsIgnoreCase(name.replaceAll("[ |_]", ""))) | ||||||
|                 continue; |                 continue; | ||||||
|  |  | ||||||
|             return perm; |             return perm; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user