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); SignsByLocation.put(jSign.locToBlockString(), jSign);
HashMap<String, jobsSign> old = SignsByType.get(jSign.getIdentifier().toLowerCase()); HashMap<String, jobsSign> old = new HashMap<>();
if (old == null) { old.put(jSign.locToBlockString(), jSign);
old = new HashMap<String, jobsSign>();
SignsByType.put(jSign.getIdentifier().toLowerCase(), old);
}
String loc = jSign.locToBlockString(); SignsByType.put(jSign.getIdentifier().toLowerCase(), old);
old.put(loc, jSign);
} }
public void LoadSigns() { public void LoadSigns() {

View File

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