1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 22:13:25 +01:00

Fixed signs merging issue

This commit is contained in:
montlikadani 2020-03-26 10:27:17 +01:00
parent 9e006ebe89
commit 06db89af5e
2 changed files with 4 additions and 10 deletions

View File

@ -57,14 +57,10 @@ public class SignUtil {
SignsByLocation.put(jSign.locToBlockString(), jSign);
HashMap<String, jobsSign> old = SignsByType.get(jSign.getIdentifier().toLowerCase());
if (old == null) {
old = new HashMap<String, jobsSign>();
SignsByType.put(jSign.getIdentifier().toLowerCase(), old);
}
HashMap<String, jobsSign> old = new HashMap<>();
old.put(jSign.locToBlockString(), jSign);
String loc = jSign.locToBlockString();
old.put(loc, jSign);
SignsByType.put(jSign.getIdentifier().toLowerCase(), old);
}
public void LoadSigns() {

View File

@ -4,7 +4,6 @@ import java.util.List;
import java.util.Map.Entry;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@ -26,7 +25,6 @@ public class fireall implements Cmd {
}
if (args[0].equalsIgnoreCase("all")) {
if (sender instanceof Player) {
sender.sendMessage(Jobs.getLanguage().getMessage("general.error.fromconsole"));
return true;