1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Removed unused import & modified messages

This commit is contained in:
Poslovitch 2017-06-19 15:58:32 +02:00
parent 9d4f6879ea
commit b3ec105ddc
2 changed files with 2 additions and 4 deletions

View File

@ -3,7 +3,6 @@ package me.mrCookieSlime.Slimefun.Commands;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
@ -209,7 +208,7 @@ public class SlimefunCommand implements CommandExecutor, Listener {
Bukkit.getPlayer(args[1]).getInventory().addItem(new CustomItem(SlimefunItem.getByName(args[2].toUpperCase()).getItem(), amount));
Messages.local.sendTranslation(sender, "messages.give-item", true, new Variable("%player%", args[1]), new Variable("%item%", SlimefunItem.getByName(args[2].toUpperCase()).getItem().getItemMeta().getDisplayName()), new Variable("%amount%", String.valueOf(amount)));
}
else Messages.local.sendTranslation(sender, "messages.too-low-amount", true);
else Messages.local.sendTranslation(sender, "messages.not-valid-amount", true, new Variable("%amount%", String.valueOf(amount)));
} catch (NumberFormatException e){
Messages.local.sendTranslation(sender, "messages.not-valid-amount", true, new Variable("%amount%", args[3]));
}

View File

@ -26,8 +26,7 @@ public class Messages {
local.setDefault("messages.usage", "&4Usage: &c%usage%");
local.setDefault("messages.not-online", "&4%player% &cis not online!");
local.setDefault("messages.not-valid-item", "&4%item% &cis not a valid Item!");
local.setDefault("messages.not-valid-amount", "&4%amount% &cis not a valid amount!");
local.setDefault("messages.too-low-amount", "&cAmount must be higher than 0!");
local.setDefault("messages.not-valid-amount", "&4%amount% &cis not a valid amount : it must be higher than 0!");
local.setDefault("messages.given-item", "&bYou have been given &a%amount% &7\"%item%\"");
local.setDefault("messages.give-item", "&bYou have given %player% &a%amount% &7\"%item%\"");
local.setDefault("messages.not-valid-research", "&4%research% &cis not a valid Research!");