Skip to content

Commit efc8dc0

Browse files
committed
Refactoring method
1 parent 449bb1e commit efc8dc0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>me.croabeast</groupId>
88
<artifactId>YAML-API</artifactId>
9-
<version>1.0</version>
9+
<version>1.1</version>
1010
<packaging>jar</packaging>
1111

1212
<properties>

src/main/java/me/croabeast/file/ConfigurableUnit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ default String getPermission() {
5959
* @param sender the command sender.
6060
* @return {@code true} if the sender has the permission, {@code false} otherwise.
6161
*/
62-
default boolean hasPerm(CommandSender sender) {
62+
default boolean hasPermission(CommandSender sender) {
6363
return sender.hasPermission(getPermission());
6464
}
6565

src/main/java/me/croabeast/file/UnitMappable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ default U getUnit(@Nullable Player player) {
3535

3636
for (final C collection : values()) {
3737
for (U unit : collection)
38-
if (unit.hasPerm(player)) return unit;
38+
if (unit.hasPermission(player)) return unit;
3939
}
4040

4141
return null;

0 commit comments

Comments
 (0)