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:
parent
9e006ebe89
commit
06db89af5e
@ -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() {
|
||||
|
@ -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,11 +25,10 @@ public class fireall implements Cmd {
|
||||
}
|
||||
|
||||
if (args[0].equalsIgnoreCase("all")) {
|
||||
|
||||
if (sender instanceof Player) {
|
||||
sender.sendMessage(Jobs.getLanguage().getMessage("general.error.fromconsole"));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Jobs.getDBManager().getDB().truncate(DBTables.JobsTable.getTableName());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user