Merge remote-tracking branch 'upstream/1.6.x' into 1.6.x
Merge commit writed after the fork
This commit is contained in:
@@ -76,7 +76,7 @@ public abstract class Board {
|
||||
// Map generation
|
||||
//----------------------------------------------//
|
||||
|
||||
/**
|
||||
/*
|
||||
* The map is relative to a coord and a faction north is in the direction of decreasing x east is in the direction
|
||||
* of decreasing z
|
||||
*/
|
||||
|
||||
@@ -19,9 +19,7 @@ import java.util.List;
|
||||
* Logged in players always have exactly one FPlayer instance. Logged out players may or may not have an FPlayer
|
||||
* instance. They will always have one if they are part of a faction. This is because only players with a faction are
|
||||
* saved to disk (in order to not waste disk space).
|
||||
* <plugin/>
|
||||
* The FPlayer is linked to a minecraft player using the player name.
|
||||
* <plugin/>
|
||||
* The same instance is always returned for the same player. This means you can use the == operator. No .equals method
|
||||
* necessary.
|
||||
*/
|
||||
@@ -38,7 +36,7 @@ public interface FPlayer extends EconomyParticipator {
|
||||
/**
|
||||
* Toggles the stealth of the FPlayer depending on the parameter
|
||||
*
|
||||
* @param stealthToggle
|
||||
* @param stealthToggle - toggles stealth
|
||||
*/
|
||||
void setStealth(boolean stealthToggle);
|
||||
|
||||
@@ -62,7 +60,7 @@ public interface FPlayer extends EconomyParticipator {
|
||||
/**
|
||||
* Sets the faction of the FPlayer
|
||||
*
|
||||
* @param faction
|
||||
* @param faction faction to set.
|
||||
*/
|
||||
void setFaction(Faction faction);
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ public class CmdChest extends FCommand {
|
||||
|
||||
public CmdChest() {
|
||||
this.aliases.add("chest");
|
||||
this.aliases.add("pv");
|
||||
|
||||
//this.requiredArgs.add("");
|
||||
|
||||
|
||||
@@ -776,4 +776,4 @@ public class FactionsEntityListener implements Listener {
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -435,7 +435,7 @@ public class FactionsPlayerListener implements Listener {
|
||||
|
||||
if (SavageFactions.plugin.getConfig().getBoolean("scoreboard.default-enabled", false)) {
|
||||
FScoreboard.init(me);
|
||||
FScoreboard.get(me).setDefaultSidebar(new FDefaultSidebar(), SavageFactions.plugin.getConfig().getInt("default-update-interval", 20));
|
||||
FScoreboard.get(me).setDefaultSidebar(new FDefaultSidebar(), SavageFactions.plugin.getConfig().getInt("scoreboard.default-update-interval", 20));
|
||||
FScoreboard.get(me).setSidebarVisibility(me.showScoreboard());
|
||||
}
|
||||
|
||||
|
||||
@@ -19,15 +19,13 @@ import java.util.Map.Entry;
|
||||
|
||||
/**
|
||||
* <b>ParticleEffect Library</b>
|
||||
* <plugin>
|
||||
* This library was created by @DarkBlade12 and allows you to display all Minecraft particle effects on a Bukkit server
|
||||
* <plugin>
|
||||
*
|
||||
* You are welcome to use it, modify it and redistribute it under the following conditions:
|
||||
* <ul>
|
||||
* <li>Don't claim this class as your own
|
||||
* <li>Don't remove this disclaimer
|
||||
* </ul>
|
||||
* <plugin>
|
||||
* Special thanks:
|
||||
* <ul>
|
||||
* <li>@microgeek (original idea, names and packet parameters)
|
||||
@@ -36,7 +34,6 @@ import java.util.Map.Entry;
|
||||
* <li>@Cybermaxke (particle behavior)
|
||||
* <li>@JamieSinn (hosting a jenkins server and documentation for particleeffect)
|
||||
* </ul>
|
||||
* <plugin>
|
||||
* <i>It would be nice if you provide credit to me if you use this class in a published project</i>
|
||||
*
|
||||
* @author DarkBlade12
|
||||
@@ -527,6 +524,8 @@ public enum ParticleEffect {
|
||||
/**
|
||||
* Determine if this particle effect has a specific property
|
||||
*
|
||||
*
|
||||
* @param property - property to check.
|
||||
* @return Whether it has the property or not
|
||||
*/
|
||||
public boolean hasProperty(ParticleProperty property) {
|
||||
@@ -905,7 +904,6 @@ public enum ParticleEffect {
|
||||
|
||||
/**
|
||||
* Represents the property of a particle effect
|
||||
* <plugin>
|
||||
* This class is part of the <b>ParticleEffect Library</b> and follows the same usage conditions
|
||||
*
|
||||
* @author DarkBlade12
|
||||
@@ -932,7 +930,6 @@ public enum ParticleEffect {
|
||||
|
||||
/**
|
||||
* Represents the particle data for effects like {@link ParticleEffect#ITEM_CRACK}, {@link ParticleEffect#BLOCK_CRACK} and {@link ParticleEffect#BLOCK_DUST}
|
||||
* <plugin>
|
||||
* This class is part of the <b>ParticleEffect Library</b> and follows the same usage conditions
|
||||
*
|
||||
* @author DarkBlade12
|
||||
@@ -995,7 +992,6 @@ public enum ParticleEffect {
|
||||
|
||||
/**
|
||||
* Represents the item data for the {@link ParticleEffect#ITEM_CRACK} effect
|
||||
* <plugin>
|
||||
* This class is part of the <b>ParticleEffect Library</b> and follows the same usage conditions
|
||||
*
|
||||
* @author DarkBlade12
|
||||
@@ -1016,7 +1012,6 @@ public enum ParticleEffect {
|
||||
|
||||
/**
|
||||
* Represents the block data for the {@link ParticleEffect#BLOCK_CRACK} and {@link ParticleEffect#BLOCK_DUST} effects
|
||||
* <plugin>
|
||||
* This class is part of the <b>ParticleEffect Library</b> and follows the same usage conditions
|
||||
*
|
||||
* @author DarkBlade12
|
||||
@@ -1041,7 +1036,6 @@ public enum ParticleEffect {
|
||||
|
||||
/**
|
||||
* Represents the color for effects like {@link ParticleEffect#SPELL_MOB}, {@link ParticleEffect#SPELL_MOB_AMBIENT}, {@link ParticleEffect#REDSTONE} and {@link ParticleEffect#NOTE}
|
||||
* <plugin>
|
||||
* This class is part of the <b>ParticleEffect Library</b> and follows the same usage conditions
|
||||
*
|
||||
* @author DarkBlade12
|
||||
@@ -1072,7 +1066,6 @@ public enum ParticleEffect {
|
||||
|
||||
/**
|
||||
* Represents the color for effects like {@link ParticleEffect#SPELL_MOB}, {@link ParticleEffect#SPELL_MOB_AMBIENT} and {@link ParticleEffect#NOTE}
|
||||
* <plugin>
|
||||
* This class is part of the <b>ParticleEffect Library</b> and follows the same usage conditions
|
||||
*
|
||||
* @author DarkBlade12
|
||||
@@ -1184,7 +1177,7 @@ public enum ParticleEffect {
|
||||
|
||||
/**
|
||||
* Represents the color for the {@link ParticleEffect#NOTE} effect
|
||||
* <plugin>
|
||||
*
|
||||
* This class is part of the <b>ParticleEffect Library</b> and follows the same usage conditions
|
||||
*
|
||||
* @author DarkBlade12
|
||||
@@ -1243,7 +1236,7 @@ public enum ParticleEffect {
|
||||
|
||||
/**
|
||||
* Represents a runtime exception that is thrown either if the displayed particle effect requires data and has none or vice-versa or if the data type is incorrect
|
||||
* <plugin>
|
||||
*
|
||||
* This class is part of the <b>ParticleEffect Library</b> and follows the same usage conditions
|
||||
*
|
||||
* @author DarkBlade12
|
||||
@@ -1264,7 +1257,7 @@ public enum ParticleEffect {
|
||||
|
||||
/**
|
||||
* Represents a runtime exception that is thrown either if the displayed particle effect is not colorable or if the particle color type is incorrect
|
||||
* <plugin>
|
||||
*
|
||||
* This class is part of the <b>ParticleEffect Library</b> and follows the same usage conditions
|
||||
*
|
||||
* @author DarkBlade12
|
||||
@@ -1285,7 +1278,7 @@ public enum ParticleEffect {
|
||||
|
||||
/**
|
||||
* Represents a runtime exception that is thrown if the displayed particle effect requires a newer version
|
||||
* <plugin>
|
||||
*
|
||||
* This class is part of the <b>ParticleEffect Library</b> and follows the same usage conditions
|
||||
*
|
||||
* @author DarkBlade12
|
||||
@@ -1306,7 +1299,7 @@ public enum ParticleEffect {
|
||||
|
||||
/**
|
||||
* Represents a particle effect packet with all attributes which is used for sending packets to the players
|
||||
* <plugin>
|
||||
*
|
||||
* This class is part of the <b>ParticleEffect Library</b> and follows the same usage conditions
|
||||
*
|
||||
* @author DarkBlade12
|
||||
@@ -1392,7 +1385,7 @@ public enum ParticleEffect {
|
||||
|
||||
/**
|
||||
* Initializes {@link #packetConstructor}, {@link #getHandle}, {@link #playerConnection} and {@link #sendPacket} and sets {@link #initialized} to <code>true</code> if it succeeds
|
||||
* <plugin>
|
||||
*
|
||||
* <b>Note:</b> These fields only have to be initialized once, so it will return if {@link #initialized} is already set to <code>true</code>
|
||||
*
|
||||
* @throws VersionIncompatibleException if your bukkit version is not supported by this library
|
||||
@@ -1539,7 +1532,7 @@ public enum ParticleEffect {
|
||||
|
||||
/**
|
||||
* Represents a runtime exception that is thrown if a bukkit version is not compatible with this library
|
||||
* <plugin>
|
||||
*
|
||||
* This class is part of the <b>ParticleEffect Library</b> and follows the same usage conditions
|
||||
*
|
||||
* @author DarkBlade12
|
||||
@@ -1561,7 +1554,7 @@ public enum ParticleEffect {
|
||||
|
||||
/**
|
||||
* Represents a runtime exception that is thrown if packet instantiation fails
|
||||
* <plugin>
|
||||
*
|
||||
* This class is part of the <b>ParticleEffect Library</b> and follows the same usage conditions
|
||||
*
|
||||
* @author DarkBlade12
|
||||
@@ -1583,7 +1576,7 @@ public enum ParticleEffect {
|
||||
|
||||
/**
|
||||
* Represents a runtime exception that is thrown if packet sending fails
|
||||
* <plugin>
|
||||
*
|
||||
* This class is part of the <b>ParticleEffect Library</b> and follows the same usage conditions
|
||||
*
|
||||
* @author DarkBlade12
|
||||
|
||||
@@ -11,15 +11,15 @@ import java.util.Map;
|
||||
|
||||
/**
|
||||
* <b>ReflectionUtils</b>
|
||||
* <plugin>
|
||||
*
|
||||
* This class provides useful methods which makes dealing with reflection much easier, especially when working with Bukkit
|
||||
* <plugin>
|
||||
*
|
||||
* You are welcome to use it, modify it and redistribute it under the following conditions:
|
||||
* <ul>
|
||||
* <li>Don't claim this class as your own
|
||||
* <li>Don't remove this disclaimer
|
||||
* </ul>
|
||||
* <plugin>
|
||||
*
|
||||
* <i>It would be nice if you provide credit to me if you use this class in a published project</i>
|
||||
*
|
||||
* @author DarkBlade12
|
||||
@@ -346,7 +346,7 @@ public final class ReflectionUtils {
|
||||
|
||||
/**
|
||||
* Represents an enumeration of dynamic packages of NMS and CraftBukkit
|
||||
* <plugin>
|
||||
*
|
||||
* This class is part of the <b>ReflectionUtils</b> and follows the same usage conditions
|
||||
*
|
||||
* @author DarkBlade12
|
||||
@@ -433,7 +433,7 @@ public final class ReflectionUtils {
|
||||
|
||||
/**
|
||||
* Represents an enumeration of Java data types with corresponding classes
|
||||
* <plugin>
|
||||
*
|
||||
* This class is part of the <b>ReflectionUtils</b> and follows the same usage conditions
|
||||
*
|
||||
* @author DarkBlade12
|
||||
|
||||
@@ -12,7 +12,7 @@ public class WarmUpUtil {
|
||||
* @param action The action, inserted into the notification message.
|
||||
* @param runnable The task to run after the delay. If the delay is 0, the task is instantly ran.
|
||||
* @param delay The time used, in seconds, for the delay.
|
||||
* <plugin/>
|
||||
*
|
||||
* note: for translations: %s = action, %d = delay
|
||||
*/
|
||||
public static void process(final FPlayer player, Warmup warmup, TL translationKey, String action, final Runnable runnable, long delay) {
|
||||
|
||||
@@ -39,9 +39,7 @@ import java.util.UUID;
|
||||
* Logged in players always have exactly one FPlayer instance. Logged out players may or may not have an FPlayer
|
||||
* instance. They will always have one if they are part of a faction. This is because only players with a faction are
|
||||
* saved to disk (in order to not waste disk space).
|
||||
* <plugin/>
|
||||
* The FPlayer is linked to a minecraft player using the player name.
|
||||
* <plugin/>
|
||||
* The same instance is always returned for the same player. This means you can use the == operator. No .equals method
|
||||
* necessary.
|
||||
*/
|
||||
|
||||
@@ -643,9 +643,9 @@ public enum TL {
|
||||
COMMAND_STATUS_DESCRIPTION("Show the status of a player"),
|
||||
|
||||
COMMAND_STEALTH_DESCRIPTION("Enable and Disable Stealth Mode"),
|
||||
COMMAND_STEALTH_ENABLE("&cStealth &7» &7You will no longer disable nearby players in /f fly for {timeout} seconds."),
|
||||
COMMAND_STEALTH_DISABLE("&2Stealth &8» &7You will now disable other nearby players in /f fly."),
|
||||
COMMAND_STEALTH_MUSTBEMEMBER("&2Stealth &8» &4You must be in a faction to use this command"),
|
||||
COMMAND_STEALTH_ENABLE("&cStealth &7» &7You will no longer disable nearby players in /f fly."),
|
||||
COMMAND_STEALTH_DISABLE("&cStealth &8» &7You will now disable other nearby players in /f fly."),
|
||||
COMMAND_STEALTH_MUSTBEMEMBER("&cStealth &8» &4You must be in a faction to use this command"),
|
||||
|
||||
COMMAND_STUCK_TIMEFORMAT("m 'minutes', s 'seconds.'"),
|
||||
COMMAND_STUCK_CANCELLED("<a>Teleport cancelled because you were damaged"),
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
# SavageFactions by ProSavage
|
||||
# Report issues https://github.com/ProSavage/SavageFactions/issues/new
|
||||
# Live support https://discord.gg/W9dv9WP
|
||||
# Spigot Site: https://www.spigotmc.org/resources/savagefactions-factionsuuid-reimagined-1-7-1-12.52891/
|
||||
# Report issues: https://github.com/ProSavage/SavageFactions/issues/new
|
||||
# Live support: https://discord.gg/W9dv9WP
|
||||
# Spigot Site: https://www.spigotmc.org/resources/savagefactions-factionsuuid-reimagined-1-7-1-12.52891/
|
||||
# Website: https://www.prosavage.net/
|
||||
# Jenkins: https://jenkins.prosavage.net/
|
||||
|
||||
# Made with love <3
|
||||
|
||||
@@ -70,12 +71,6 @@ ffly:
|
||||
Enable-While-Vanished: true
|
||||
AutoEnable: true #If set to true, fly will automatically enable when walking into your own chunk.
|
||||
|
||||
|
||||
|
||||
# This will set the timeout for the stealth in seconds.
|
||||
stealth-timeout: 300
|
||||
stealth-cost: 500
|
||||
|
||||
# If a player leaves fly (out of territory or took damage)
|
||||
# how long should they not take fall damage for?
|
||||
# Set to 0 to have them always take fall damage.
|
||||
@@ -355,7 +350,7 @@ help:
|
||||
- '&e/f list &8- &7List all factions.'
|
||||
- '&e/f top &8- &7View the richest factions.'
|
||||
- '&e/f map &8- &7Map of the surrounding area, click chunks to claim.'
|
||||
- '&e/f sethome &8- &7Teleport to faction home.'
|
||||
- '&e/f sethome &8- &7Set your faction home.'
|
||||
- '&e/f home &8- &7Set your faction home.'
|
||||
- '&e/f title &f<playername> <title> &8- &7Set a player''s title, color codes supported.'
|
||||
- '&e/f ban &8- &7Ban a member from your faction.'
|
||||
@@ -734,7 +729,7 @@ checkpoints:
|
||||
|
||||
############################################################
|
||||
# +------------------------------------------------------+ #
|
||||
# | Faction Near | #
|
||||
# | Faction Near | #
|
||||
# +------------------------------------------------------+ #
|
||||
############################################################
|
||||
fnear:
|
||||
@@ -761,12 +756,13 @@ fvault:
|
||||
|
||||
############################################################
|
||||
# +------------------------------------------------------+ #
|
||||
# | Faction Vault | #
|
||||
# | Faction Chest | #
|
||||
# +------------------------------------------------------+ #
|
||||
fchest:
|
||||
Enabled: true
|
||||
Inventory-Title: '&2&lFaction Chest'
|
||||
# Vault size upgrades can be configured in the upgrades section of config
|
||||
# Chest size upgrades can be configured in the upgrades section of config
|
||||
|
||||
############################################################
|
||||
# +------------------------------------------------------+ #
|
||||
# | Faction Upgrades | #
|
||||
@@ -940,6 +936,11 @@ fupgrades:
|
||||
slots:
|
||||
- 22
|
||||
|
||||
############################################################
|
||||
# +------------------------------------------------------+ #
|
||||
# | Faction Banners | #
|
||||
# +------------------------------------------------------+ #
|
||||
############################################################
|
||||
fbanners:
|
||||
Enabled: true
|
||||
Item:
|
||||
|
||||
@@ -2,7 +2,7 @@ name: Factions
|
||||
version: ${project.version}-1.4-STABLE
|
||||
api-version: 1.13
|
||||
main: com.massivecraft.factions.SavageFactions
|
||||
authors: [Olof Larsson, Brett Flannigan, drtshock, ProSavage, AL56AF50]
|
||||
authors: [Olof Larsson, Brett Flannigan, drtshock, ProSavage, AL56AF50, Driftay]
|
||||
softdepend: [CoreProtect, PlayerVaults, PlaceholderAPI, MVdWPlaceholderAPI, PermissionsEx, Permissions, Essentials, EssentialsChat, HeroChat, iChat, LocalAreaChat, LWC, nChat, ChatManager, CAPI, AuthMe, Vault, Spout, WorldEdit, WorldGuard, AuthDB, CaptureThePoints, CombatTag, dynmap, FactionsTop]
|
||||
website: www.prosavage.net
|
||||
commands:
|
||||
|
||||
Reference in New Issue
Block a user