More Credit

This commit is contained in:
Driftay 2019-12-02 14:03:27 -05:00
parent f437144fba
commit d03ca58105
46 changed files with 200 additions and 2 deletions

View File

@ -9,6 +9,10 @@ import java.util.UUID;
public class CmdFGlobal extends FCommand {
/**
* @author Trent
*/
public static List<UUID> toggled = new ArrayList<>();
public CmdFGlobal() {

View File

@ -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");

View File

@ -16,6 +16,10 @@ import java.util.Objects;
public class CmdInventorySee extends FCommand {
/**
* @author Driftay
*/
public CmdInventorySee() {
super();

View File

@ -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");

View File

@ -8,6 +8,10 @@ import com.massivecraft.factions.zcore.util.TL;
public class CmdPaypalSet extends FCommand {
/**
* @author Driftay
*/
public CmdPaypalSet() {
this.aliases.add("setpaypal");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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();

View File

@ -6,6 +6,9 @@ import com.massivecraft.factions.zcore.util.TL;
public class CmdStrikesGive extends FCommand {
/**
* @author Driftay
*/
public CmdStrikesGive() {
super();

View File

@ -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");

View File

@ -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");

View File

@ -6,6 +6,9 @@ import com.massivecraft.factions.zcore.util.TL;
public class CmdStrikesTake extends FCommand {
/**
* @author Driftay
*/
public CmdStrikesTake() {
super();

View File

@ -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");

View File

@ -13,7 +13,6 @@ import java.util.stream.Collectors;
public class CmdAltsList extends FCommand {
/**
* @author Driftay
*/

View File

@ -18,6 +18,10 @@ import java.util.List;
public class CmdCorner extends FCommand {
/**
* @author Driftay
*/
public CmdCorner() {
this.aliases.add("corner");

View File

@ -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();

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -10,6 +10,10 @@ import net.dv8tion.jda.core.Permission;
public class CmdInviteBot extends FCommand {
/**
* @author Driftay
*/
public CmdInviteBot(){
super();
this.aliases.add("invitebot");

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;
}

View File

@ -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() {

View File

@ -17,6 +17,10 @@ import java.util.logging.Level;
public class EssentialsHomeHandler implements Listener {
/**
* @author Driftay
*/
private IEssentials ess;
public EssentialsHomeHandler(IEssentials essentials) {

View File

@ -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");

View File

@ -1,6 +1,11 @@
package com.massivecraft.factions.missions;
public class Mission {
/**
* @author Driftay
*/
private long progress;
private String name;
private String type;

View File

@ -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;

View File

@ -22,6 +22,10 @@ import java.util.stream.Collectors;
public class MissionHandler implements Listener {
/**
* @author Driftay
*/
private FactionsPlugin plugin;
public MissionHandler(FactionsPlugin plugin) {

View File

@ -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");

View File

@ -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");

View File

@ -25,6 +25,10 @@ import java.util.stream.Collectors;
public class ShopGUIFrame {
/**
* @author Driftay
*/
private Gui gui;
private String s;

View File

@ -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");
}

View File

@ -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;

View File

@ -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),

View File

@ -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"),

View File

@ -3,6 +3,11 @@ package com.massivecraft.factions.struct;
public class Placeholder {
/**
* @author Illyria Team
*/
private String tag;
private String replace;

View File

@ -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()),

View File

@ -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),

View File

@ -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}"),

View File

@ -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)),

View File

@ -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")),

View File

@ -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);

View File

@ -7,6 +7,11 @@ import me.clip.placeholderapi.PlaceholderAPI;
import org.bukkit.entity.Player;
public interface Tag {
/**
* @author FactionsUUID Team
*/
int ARBITRARY_LIMIT = 25000;
/**