mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-04 23:37:49 +01:00
Version up and some cleanup
This commit is contained in:
parent
8288c83d00
commit
d056dc8ecf
@ -516,13 +516,10 @@ public class RawMessage {
|
||||
if (!player.isOnline())
|
||||
return this;
|
||||
|
||||
// CMI.getInstance().d("|" + combined + "|");
|
||||
|
||||
if (softCombined) {
|
||||
for (String one : softCombine()) {
|
||||
if (one.isEmpty())
|
||||
continue;
|
||||
// CMI.getInstance().d("=" + one + "=");
|
||||
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "tellraw " + player.getName() + " " + one);
|
||||
}
|
||||
} else {
|
||||
|
@ -949,7 +949,7 @@ public class Jobs extends JavaPlugin {
|
||||
JobInfo jobinfo = prog.getJob().getJobInfo(info, level);
|
||||
|
||||
checkDailyQuests(jPlayer, prog.getJob(), info);
|
||||
|
||||
|
||||
if (jobinfo == null)
|
||||
continue;
|
||||
|
||||
|
@ -1022,7 +1022,8 @@ public class PlayerManager {
|
||||
boost.add(BoostOf.Dynamic, new BoostMultiplier().add(prog.getBonus()));
|
||||
// boost.add(BoostOf.Item, Jobs.getPlayerManager().getItemBoost(player.getPlayer(), prog));
|
||||
boost.add(BoostOf.Item, getItemBoostNBT(player.getPlayer(), prog));
|
||||
boost.add(BoostOf.Area, new BoostMultiplier().add(Jobs.getRestrictedAreaManager().getRestrictedMultiplier(player.getPlayer())));
|
||||
if (!Jobs.getRestrictedAreaManager().getRestrictedAres().isEmpty())
|
||||
boost.add(BoostOf.Area, new BoostMultiplier().add(Jobs.getRestrictedAreaManager().getRestrictedMultiplier(player.getPlayer())));
|
||||
return boost;
|
||||
}
|
||||
|
||||
|
@ -174,7 +174,6 @@ public class BlockProtectionManager {
|
||||
public Integer getBlockDelayTime(Block block) {
|
||||
Integer time = Jobs.getRestrictedBlockManager().restrictedBlocksTimer.get(CMIMaterial.get(block));
|
||||
if (time == null && Jobs.getGCManager().useGlobalTimer) {
|
||||
Debug.D("using global " + block.getType());
|
||||
time = Jobs.getGCManager().globalblocktimer;
|
||||
}
|
||||
return time;
|
||||
|
@ -40,7 +40,6 @@ import com.gamingmesh.jobs.container.CurrencyLimit;
|
||||
import com.gamingmesh.jobs.container.CurrencyType;
|
||||
import com.gamingmesh.jobs.container.Schedule;
|
||||
import com.gamingmesh.jobs.resources.jfep.Parser;
|
||||
import com.gamingmesh.jobs.stuff.Debug;
|
||||
|
||||
public class GeneralConfigManager {
|
||||
public List<Integer> BroadcastingLevelUpLevels = new ArrayList<>();
|
||||
@ -343,9 +342,6 @@ public class GeneralConfigManager {
|
||||
}
|
||||
|
||||
public boolean canPerformActionInWorld(World world) {
|
||||
if (world == null || !DisabledWorldsUse)
|
||||
return true;
|
||||
|
||||
return canPerformActionInWorld(world.getName());
|
||||
}
|
||||
|
||||
@ -610,10 +606,9 @@ public class GeneralConfigManager {
|
||||
HashMap<Enchantment, Integer> submap = new HashMap<Enchantment, Integer>();
|
||||
if (enchant != null)
|
||||
submap.put(enchant, level);
|
||||
|
||||
|
||||
whiteListedItems.put(mat, submap);
|
||||
}
|
||||
Debug.D("Loaded materials ",whiteListedItems.size());
|
||||
|
||||
c.addComment("modify-chat", "Modifys chat to add chat titles. If you're using a chat manager, you may add the tag {jobs} to your chat format and disable this.");
|
||||
modifyChat = c.get("modify-chat.use", false);
|
||||
|
Loading…
Reference in New Issue
Block a user