Few minor changes

This commit is contained in:
DroppingAnvil 2020-03-25 13:35:50 -05:00 committed by droppinganvil
parent a086f8db7a
commit 3d997bbf16
5 changed files with 7 additions and 5 deletions

@ -22,7 +22,7 @@ public class Conf {
public static final transient double DYNMAP_STYLE_FILL_OPACITY = 0.35D;
public static final transient String DYNMAP_STYLE_HOME_MARKER = "greenflag";
public static final transient boolean DYNMAP_STYLE_BOOST = false;
public static List<String> baseCommandAliases = new ArrayList<>();
public static List<String> baseCommandAliases = new ArrayList<>(Collections.singletonList("f"));
public static boolean allowNoSlashCommand = true;
// Colors
@ -411,7 +411,6 @@ public class Conf {
}
static {
baseCommandAliases.add("f");
blacklistedFactionNames.add("somenamehere");

@ -202,6 +202,7 @@ public class FactionsPlugin extends MPlugin {
divider();
return;
}
//TODO fix this
//Update their config if needed
// Updater.updateIfNeeded(getConfig());
RegisteredServiceProvider<Economy> rsp = FactionsPlugin.this.getServer().getServicesManager().getRegistration(Economy.class);

@ -34,7 +34,7 @@ public class CmdWild extends FCommand implements WaitedTask {
public CmdWild() {
super();
if (this.instance == null) instance = this;
if (instance == null) instance = this;
this.aliases.addAll(Aliases.wild);
this.requirements = new CommandRequirements.Builder(Permission.WILD)
.playerOnly()

@ -99,6 +99,8 @@ public class Duel {
Duels.duel = new Duel(fvf.getKey(), fvf.getValue());
Duels.preparingDuel = true;
Duels.acceptedDuel.clear();
Duels.sendRequests(faction1);
Duels.sendRequests(faction2);
}
}

@ -60,8 +60,8 @@ public class Duels {
return new Location(Bukkit.getWorld(locKeyArray[0]), Double.parseDouble(locKeyArray[1]), Double.parseDouble(locKeyArray[2]), Double.parseDouble(locKeyArray[3]));
}
public void sendRequests() {
for (FPlayer fplayer : duel.getFaction1().getFPlayers()) {
public static void sendRequests(Faction faction) {
for (FPlayer fplayer : faction.getFPlayers()) {
if (fplayer.isOnline()) {
fplayer.getPlayer().openInventory(RequestGUI.inv);
guiMap.put(fplayer, System.currentTimeMillis());