Skip to content

Commit

Permalink
Merge pull request #13 from demkom58/material-matching-fix
Browse files Browse the repository at this point in the history
Material matching fix
  • Loading branch information
demkom58 authored Dec 3, 2020
2 parents b0939f0 + 4f0a257 commit 043b023
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pluginGroup = com.demkom58
pluginDesc = Awesome removal of items from the ground
pluginVersion = 2.7
pluginVersion = 2.7.1
url = https://www.spigotmc.org/members/98068/
4 changes: 2 additions & 2 deletions src/main/java/com/demkom58/divinedrop/config/ConfigData.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ public void updateData(@NotNull final FileConfiguration conf) {
cleanerCountdowns = new HashMap<>();
final ConfigurationSection custom = getConfigurationSection(cleaner, "custom-countdowns");
for (String materialName : custom.getKeys(false)) {
final Material material = Material.getMaterial(materialName.toUpperCase());
final Material material = Material.matchMaterial(materialName);

if (material == null) {
Bukkit.getConsoleSender().sendMessage("Unknown material: " + materialName);
Bukkit.getConsoleSender().sendMessage("[DivineDrop] Unknown material: " + materialName);
continue;
}

Expand Down
1 change: 1 addition & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
api-version: 1.13
commands:
divinedrop:
aliases: [ddrop, dd]
Expand Down

0 comments on commit 043b023

Please sign in to comment.