1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-30 21:07:48 +01:00

Lets not spam chat with disable message

This commit is contained in:
Zrips 2022-03-12 13:10:33 +02:00
parent 1f98b5fb2b
commit 8bd4ecaa04
3 changed files with 9 additions and 9 deletions

View File

@ -29,6 +29,7 @@ import com.gamingmesh.jobs.container.blockOwnerShip.BlockOwnerShip;
import com.gamingmesh.jobs.container.blockOwnerShip.BlockTypes;
import com.gamingmesh.jobs.stuff.TimeManage;
import net.Zrips.CMILib.Locale.LC;
import net.Zrips.CMILib.Logs.CMIDebug;
public class Placeholder {
@ -465,12 +466,10 @@ public class Placeholder {
String jobNames = "";
for (JobProgression prog : user.progression) {
if (!jobNames.isEmpty()) {
jobNames += ", ";
jobNames += LC.info_ListSpliter.getLocale();
}
jobNames += prog.getJob().getName();
}
return jobNames;
case user_quests:
String q = "";
@ -479,14 +478,11 @@ public class Placeholder {
if (quest == null || quest.isStopped()) {
continue;
}
if (!q.isEmpty()) {
q += ", ";
q += LC.info_ListSpliter.getLocale();
}
q += quest.getQuestName();
}
return q;
default:
break;

View File

@ -140,7 +140,8 @@ public class JobsCommands implements CommandExecutor {
boolean pl = sender instanceof Player;
sender.sendMessage(Jobs.getLanguage().getMessage("command.help.output.title"));
// Old format
// sender.sendMessage(Jobs.getLanguage().getMessage("command.help.output.title"));
for (String one : commands) {
if (!pi.isEntryOk())
continue;
@ -339,7 +340,6 @@ public class JobsCommands implements CommandExecutor {
for (JobInfo info : job.getJobInfo(type)) {
String materialName = info.getRealisticName();
double income = info.getIncome(level, numjobs, player.maxJobsEquation);

View File

@ -204,6 +204,10 @@ public class BlockOwnerShip {
String blockLoc = CMILocation.toString(block.getLocation(), ":", true, true);
com.gamingmesh.jobs.stuff.blockLoc record = ls.get(blockLoc);
if (record != null) {
if (record.isDisabled())
return false;
record.setDisabled(true);
return true;
}