@@ -1,8 +1,8 @@
|
||||
package org.bukkit.event.enchantment;
|
||||
|
||||
import com.google.common.base.Preconditions;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import org.apache.commons.lang.Validate;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.enchantments.Enchantment;
|
||||
import org.bukkit.entity.Player;
|
||||
@@ -85,7 +85,7 @@ public class EnchantItemEvent extends InventoryEvent implements Cancellable {
|
||||
* @param level - cost in levels
|
||||
*/
|
||||
public void setExpLevelCost(int level) {
|
||||
Validate.isTrue(level > 0, "The cost must be greater than 0!");
|
||||
Preconditions.checkArgument(level > 0, "The cost must be greater than 0!");
|
||||
|
||||
this.level = level;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user