More Credit
This commit is contained in:
parent
f437144fba
commit
d03ca58105
@ -9,6 +9,10 @@ import java.util.UUID;
|
||||
|
||||
public class CmdFGlobal extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Trent
|
||||
*/
|
||||
|
||||
public static List<UUID> toggled = new ArrayList<>();
|
||||
|
||||
public CmdFGlobal() {
|
||||
|
@ -7,6 +7,11 @@ import com.massivecraft.factions.struct.Permission;
|
||||
import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
public class CmdFocus extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public CmdFocus() {
|
||||
aliases.add("focus");
|
||||
|
||||
|
@ -16,6 +16,10 @@ import java.util.Objects;
|
||||
|
||||
public class CmdInventorySee extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public CmdInventorySee() {
|
||||
super();
|
||||
|
||||
|
@ -6,6 +6,11 @@ import com.massivecraft.factions.struct.Permission;
|
||||
import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
public class CmdPaypalSee extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public CmdPaypalSee() {
|
||||
this.aliases.add("seepaypal");
|
||||
this.aliases.add("paypal");
|
||||
|
@ -8,6 +8,10 @@ import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
public class CmdPaypalSet extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public CmdPaypalSet() {
|
||||
this.aliases.add("setpaypal");
|
||||
|
||||
|
@ -7,6 +7,10 @@ import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
public class CmdSeeDiscord extends FCommand{
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public CmdSeeDiscord() {
|
||||
this.aliases.add("seediscord");
|
||||
this.aliases.add("discord");
|
||||
|
@ -8,6 +8,10 @@ import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
public class CmdSetDiscord extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public CmdSetDiscord(){
|
||||
super();
|
||||
this.aliases.add("setdiscord");
|
||||
|
@ -4,6 +4,11 @@ import com.massivecraft.factions.struct.Permission;
|
||||
import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
public class CmdStealth extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public CmdStealth() {
|
||||
this.aliases.add("ninja");
|
||||
this.aliases.add("stealth");
|
||||
|
@ -6,6 +6,9 @@ import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
public class CmdStrikes extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public CmdStrikesGive cmdStrikesGive = new CmdStrikesGive();
|
||||
public CmdStrikesInfo cmdStrikesInfo = new CmdStrikesInfo();
|
||||
|
@ -6,6 +6,9 @@ import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
public class CmdStrikesGive extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public CmdStrikesGive() {
|
||||
super();
|
||||
|
@ -6,6 +6,10 @@ import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
public class CmdStrikesInfo extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public CmdStrikesInfo() {
|
||||
super();
|
||||
this.aliases.add("info");
|
||||
|
@ -6,6 +6,10 @@ import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
public class CmdStrikesSet extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public CmdStrikesSet() {
|
||||
super();
|
||||
this.aliases.add("set");
|
||||
|
@ -6,6 +6,9 @@ import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
public class CmdStrikesTake extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public CmdStrikesTake() {
|
||||
super();
|
||||
|
@ -7,6 +7,10 @@ import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
public class CmdViewChest extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public CmdViewChest() {
|
||||
super();
|
||||
this.aliases.add("viewchest");
|
||||
|
@ -13,7 +13,6 @@ import java.util.stream.Collectors;
|
||||
|
||||
public class CmdAltsList extends FCommand {
|
||||
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
@ -18,6 +18,10 @@ import java.util.List;
|
||||
|
||||
public class CmdCorner extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public CmdCorner() {
|
||||
this.aliases.add("corner");
|
||||
|
||||
|
@ -9,6 +9,10 @@ import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
public class CmdPoints extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public CmdPointsRemove cmdPointsRemove = new CmdPointsRemove();
|
||||
public CmdPointsSet cmdPointsSet = new CmdPointsSet();
|
||||
public CmdPointsAdd cmdPointsAdd = new CmdPointsAdd();
|
||||
|
@ -11,6 +11,10 @@ import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
public class CmdPointsAdd extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public CmdPointsAdd() {
|
||||
super();
|
||||
this.aliases.add("add");
|
||||
|
@ -11,6 +11,10 @@ import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
public class CmdPointsRemove extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public CmdPointsRemove() {
|
||||
super();
|
||||
this.aliases.add("remove");
|
||||
|
@ -11,6 +11,10 @@ import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
public class CmdPointsSet extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public CmdPointsSet() {
|
||||
super();
|
||||
this.aliases.add("set");
|
||||
|
@ -10,6 +10,10 @@ import net.dv8tion.jda.core.Permission;
|
||||
|
||||
public class CmdInviteBot extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public CmdInviteBot(){
|
||||
super();
|
||||
this.aliases.add("invitebot");
|
||||
|
@ -17,6 +17,11 @@ import org.bukkit.ChatColor;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class CmdSetGuild extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
private EventWaiter eventWaiter;
|
||||
private boolean waiterAdded;
|
||||
|
||||
|
@ -22,6 +22,11 @@ import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class DiscordListener extends ListenerAdapter {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
private static File file = new File(FactionsPlugin.getInstance().getDataFolder(), "discord_guilds.json");
|
||||
public static JSONGuilds guilds = loadGuilds();
|
||||
private final DecimalFormat decimalFormat;
|
||||
|
@ -27,6 +27,11 @@ import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
public class FactionChatHandler extends ListenerAdapter {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public static JDA jda;
|
||||
private FactionsPlugin plugin;
|
||||
|
||||
|
@ -1,13 +1,17 @@
|
||||
package com.massivecraft.factions.discord.json;
|
||||
|
||||
public class JSONGuild {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
private String prefix;
|
||||
|
||||
public JSONGuild() {
|
||||
this.prefix = null;
|
||||
}
|
||||
|
||||
|
||||
public String getPrefix() {
|
||||
return this.prefix;
|
||||
}
|
||||
|
@ -5,6 +5,11 @@ import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
public class JSONGuilds {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
private Map<String, JSONGuild> guilds;
|
||||
|
||||
public JSONGuilds() {
|
||||
|
@ -17,6 +17,10 @@ import java.util.logging.Level;
|
||||
|
||||
public class EssentialsHomeHandler implements Listener {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
private IEssentials ess;
|
||||
|
||||
public EssentialsHomeHandler(IEssentials essentials) {
|
||||
|
@ -9,6 +9,10 @@ import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
public class CmdMissions extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public CmdMissions() {
|
||||
this.aliases.add("missions");
|
||||
this.aliases.add("mission");
|
||||
|
@ -1,6 +1,11 @@
|
||||
package com.massivecraft.factions.missions;
|
||||
|
||||
public class Mission {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
private long progress;
|
||||
private String name;
|
||||
private String type;
|
||||
|
@ -16,6 +16,11 @@ import org.bukkit.inventory.meta.ItemMeta;
|
||||
import java.util.*;
|
||||
|
||||
public class MissionGUI implements FactionGUI {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
private FactionsPlugin plugin;
|
||||
private FPlayer fPlayer;
|
||||
private Inventory inventory;
|
||||
|
@ -22,6 +22,10 @@ import java.util.stream.Collectors;
|
||||
|
||||
public class MissionHandler implements Listener {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
private FactionsPlugin plugin;
|
||||
|
||||
public MissionHandler(FactionsPlugin plugin) {
|
||||
|
@ -9,6 +9,10 @@ import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
public class CmdShop extends FCommand {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
public CmdShop() {
|
||||
super();
|
||||
this.aliases.add("shop");
|
||||
|
@ -9,6 +9,10 @@ import java.util.ArrayList;
|
||||
|
||||
public class ShopConfig {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
//TODO: Shop YAML Converter mySQL
|
||||
|
||||
public static File shop = new File("plugins/Factions/shop.yml");
|
||||
|
@ -25,6 +25,10 @@ import java.util.stream.Collectors;
|
||||
|
||||
public class ShopGUIFrame {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
private Gui gui;
|
||||
private String s;
|
||||
|
||||
|
@ -12,6 +12,10 @@ import org.bukkit.event.Event;
|
||||
|
||||
public class PlayerChunkLocationExpression extends SimpleExpression<String> {
|
||||
|
||||
/**
|
||||
* @author Driftay
|
||||
*/
|
||||
|
||||
static {
|
||||
Skript.registerExpression(PlayerChunkLocationExpression.class, String.class, ExpressionType.SIMPLE, "[the] faction chunk at %player%", "[the] %player%['s] chunk");
|
||||
}
|
||||
|
@ -2,6 +2,10 @@ package com.massivecraft.factions.struct;
|
||||
|
||||
public class BanInfo {
|
||||
|
||||
/**
|
||||
* @author FactionsUUID Team
|
||||
*/
|
||||
|
||||
// FPlayer IDs
|
||||
private final String banner;
|
||||
private final String banned;
|
||||
|
@ -3,6 +3,11 @@ package com.massivecraft.factions.struct;
|
||||
import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
public enum ChatMode {
|
||||
|
||||
/**
|
||||
* @author FactionsUUID Team
|
||||
*/
|
||||
|
||||
MOD(4, TL.CHAT_MOD),
|
||||
FACTION(3, TL.CHAT_FACTION),
|
||||
ALLIANCE(2, TL.CHAT_ALLIANCE),
|
||||
|
@ -4,6 +4,12 @@ import com.massivecraft.factions.FactionsPlugin;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
public enum Permission {
|
||||
|
||||
/**
|
||||
* @author FactionsUUID Team
|
||||
*/
|
||||
|
||||
|
||||
MANAGE_SAFE_ZONE("managesafezone"),
|
||||
MANAGE_WAR_ZONE("managewarzone"),
|
||||
OWNERSHIP_BYPASS("ownershipbypass"),
|
||||
|
@ -3,6 +3,11 @@ package com.massivecraft.factions.struct;
|
||||
|
||||
public class Placeholder {
|
||||
|
||||
/**
|
||||
* @author Illyria Team
|
||||
*/
|
||||
|
||||
|
||||
private String tag;
|
||||
private String replace;
|
||||
|
||||
|
@ -16,6 +16,12 @@ import java.util.List;
|
||||
|
||||
|
||||
public enum Relation implements Permissable {
|
||||
|
||||
/**
|
||||
* @author Illyria Team
|
||||
*/
|
||||
|
||||
|
||||
MEMBER(4, TL.RELATION_MEMBER_SINGULAR.toString()),
|
||||
ALLY(3, TL.RELATION_ALLY_SINGULAR.toString()),
|
||||
TRUCE(2, TL.RELATION_TRUCE_SINGULAR.toString()),
|
||||
|
@ -16,6 +16,12 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public enum Role implements Permissable {
|
||||
|
||||
/**
|
||||
* @author Illyria Team
|
||||
*/
|
||||
|
||||
|
||||
LEADER(4, TL.ROLE_LEADER),
|
||||
COLEADER(3, TL.ROLE_COLEADER),
|
||||
MODERATOR(2, TL.ROLE_MODERATOR),
|
||||
|
@ -12,6 +12,11 @@ import java.util.function.BiFunction;
|
||||
import java.util.function.Function;
|
||||
|
||||
public enum FactionTag implements Tag {
|
||||
|
||||
/**
|
||||
* @author FactionsUUID Team
|
||||
*/
|
||||
|
||||
HOME_X("{x}", (fac) -> fac.hasHome() ? String.valueOf(fac.getHome().getBlockX()) : Tag.isMinimalShow() ? null : "{ig}"),
|
||||
HOME_Y("{y}", (fac) -> fac.hasHome() ? String.valueOf(fac.getHome().getBlockY()) : Tag.isMinimalShow() ? null : "{ig}"),
|
||||
HOME_Z("{z}", (fac) -> fac.hasHome() ? String.valueOf(fac.getHome().getBlockZ()) : Tag.isMinimalShow() ? null : "{ig}"),
|
||||
|
@ -13,6 +13,11 @@ import org.bukkit.ChatColor;
|
||||
import java.util.*;
|
||||
|
||||
public enum FancyTag implements Tag {
|
||||
|
||||
/**
|
||||
* @author FactionsUUID Team
|
||||
*/
|
||||
|
||||
ALLIES_LIST("{allies-list}", (target, fme, prefix, gm) -> processRelation(prefix, target, fme, Relation.ALLY)),
|
||||
ENEMIES_LIST("{enemies-list}", (target, fme, prefix, gm) -> processRelation(prefix, target, fme, Relation.ENEMY)),
|
||||
TRUCES_LIST("{truces-list}", (target, fme, prefix, gm) -> processRelation(prefix, target, fme, Relation.TRUCE)),
|
||||
|
@ -9,6 +9,11 @@ import org.bukkit.Bukkit;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
public enum GeneralTag implements Tag {
|
||||
|
||||
/**
|
||||
* @author FactionsUUID Team
|
||||
*/
|
||||
|
||||
MAX_WARPS("{max-warps}", () -> String.valueOf(FactionsPlugin.getInstance().getConfig().getInt("max-warps", 5))),
|
||||
MAX_ALLIES("{max-allies}", () -> getRelation("ally")),
|
||||
MAX_ENEMIES("{max-enemies}", () -> getRelation("enemy")),
|
||||
|
@ -11,6 +11,11 @@ import org.bukkit.entity.Player;
|
||||
import java.util.function.Function;
|
||||
|
||||
public enum PlayerTag implements Tag {
|
||||
|
||||
/**
|
||||
* @author FactionsUUID Team
|
||||
*/
|
||||
|
||||
LAST_SEEN("{lastSeen}", (fp) -> {
|
||||
String humanized = DurationFormatUtils.formatDurationWords(System.currentTimeMillis() - fp.getLastLoginTime(), true, true) + TL.COMMAND_STATUS_AGOSUFFIX;
|
||||
return fp.isOnline() ? ChatColor.GREEN + TL.COMMAND_STATUS_ONLINE.toString() : (System.currentTimeMillis() - fp.getLastLoginTime() < 432000000 ? ChatColor.YELLOW + humanized : ChatColor.RED + humanized);
|
||||
|
@ -7,6 +7,11 @@ import me.clip.placeholderapi.PlaceholderAPI;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public interface Tag {
|
||||
|
||||
/**
|
||||
* @author FactionsUUID Team
|
||||
*/
|
||||
|
||||
int ARBITRARY_LIMIT = 25000;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user