mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-22 10:36:06 +01:00
parent
ab9783047f
commit
8b241f15dc
@ -642,11 +642,15 @@ public class MultiverseCore extends JavaPlugin implements MVPlugin, Core {
|
||||
if (feeSection.isInt("currency")) {
|
||||
int oldCurrencyItemId = feeSection.getInt("currency", -1);
|
||||
if (oldCurrencyItemId >= 0) {
|
||||
String flatteningType = IdMappings.getById(Integer.toString(oldCurrencyItemId))
|
||||
.getFlatteningType();
|
||||
world.setCurrency(Material.matchMaterial(flatteningType));
|
||||
IdMappings.Mapping mapping = IdMappings.getById(Integer.toString(oldCurrencyItemId));
|
||||
if (mapping != null) {
|
||||
world.setCurrency(Material.matchMaterial(mapping.getFlatteningType()));
|
||||
} else {
|
||||
world.setCurrency(null);
|
||||
}
|
||||
} else {
|
||||
world.setCurrency(null);
|
||||
}
|
||||
world.setCurrency(null);
|
||||
}
|
||||
|
||||
if (feeSection.isDouble("amount"))
|
||||
|
Loading…
Reference in New Issue
Block a user