Revert "Moves some classes, amd changes how the massive core is included"
This reverts commit 50f3ed6dee
.
This commit is contained in:
parent
50f3ed6dee
commit
897b95be09
3
pom.xml
3
pom.xml
@ -58,7 +58,8 @@
|
|||||||
<groupId>com.massivecraft.massivecore</groupId>
|
<groupId>com.massivecraft.massivecore</groupId>
|
||||||
<artifactId>MassiveCore</artifactId>
|
<artifactId>MassiveCore</artifactId>
|
||||||
<version>3.3.3</version>
|
<version>3.3.3</version>
|
||||||
<scope>compile</scope>
|
<scope>system</scope>
|
||||||
|
<systemPath>${project.basedir}\lib\MassiveCore.jar</systemPath>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- WorldEdit -->
|
<!-- WorldEdit -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package com.massivecraft.factions.cmd;
|
package com.massivecraft.factions.cmd;
|
||||||
|
|
||||||
import com.massivecraft.factions.Factions;
|
import com.massivecraft.factions.Factions;
|
||||||
import com.massivecraft.factions.cmd.relations.req.ReqHasntFaction;
|
import com.massivecraft.factions.cmd.req.ReqHasntFaction;
|
||||||
import com.massivecraft.factions.cmd.type.TypeFactionNameStrict;
|
import com.massivecraft.factions.cmd.type.TypeFactionNameStrict;
|
||||||
import com.massivecraft.factions.entity.Faction;
|
import com.massivecraft.factions.entity.Faction;
|
||||||
import com.massivecraft.factions.entity.FactionColl;
|
import com.massivecraft.factions.entity.FactionColl;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package com.massivecraft.factions.cmd;
|
package com.massivecraft.factions.cmd;
|
||||||
|
|
||||||
import com.massivecraft.factions.cmd.relations.req.ReqHasFaction;
|
import com.massivecraft.factions.cmd.req.ReqHasFaction;
|
||||||
import com.massivecraft.factions.entity.MPerm;
|
import com.massivecraft.factions.entity.MPerm;
|
||||||
import com.massivecraft.factions.entity.MPlayer;
|
import com.massivecraft.factions.entity.MPlayer;
|
||||||
import com.massivecraft.factions.event.EventFactionsDescriptionChange;
|
import com.massivecraft.factions.event.EventFactionsDescriptionChange;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package com.massivecraft.factions.cmd;
|
package com.massivecraft.factions.cmd;
|
||||||
|
|
||||||
import com.massivecraft.factions.cmd.relations.req.ReqTaxEnabled;
|
import com.massivecraft.factions.cmd.req.ReqTaxEnabled;
|
||||||
import com.massivecraft.factions.entity.MConf;
|
import com.massivecraft.factions.entity.MConf;
|
||||||
import com.massivecraft.massivecore.money.Money;
|
import com.massivecraft.massivecore.money.Money;
|
||||||
import com.massivecraft.massivecore.util.TimeDiffUtil;
|
import com.massivecraft.massivecore.util.TimeDiffUtil;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package com.massivecraft.factions.cmd;
|
package com.massivecraft.factions.cmd;
|
||||||
|
|
||||||
import com.massivecraft.factions.cmd.relations.req.ReqFactionWarpsEnabled;
|
import com.massivecraft.factions.cmd.req.ReqFactionWarpsEnabled;
|
||||||
import com.massivecraft.factions.entity.MConf;
|
import com.massivecraft.factions.entity.MConf;
|
||||||
import com.massivecraft.factions.entity.MPerm;
|
import com.massivecraft.factions.entity.MPerm;
|
||||||
import com.massivecraft.factions.entity.MPerm.MPermable;
|
import com.massivecraft.factions.entity.MPerm.MPermable;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package com.massivecraft.factions.cmd;
|
package com.massivecraft.factions.cmd;
|
||||||
|
|
||||||
import com.massivecraft.factions.cmd.relations.req.ReqHasFaction;
|
import com.massivecraft.factions.cmd.req.ReqHasFaction;
|
||||||
|
|
||||||
public class CmdFactionsLeave extends FactionsCommand {
|
public class CmdFactionsLeave extends FactionsCommand {
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package com.massivecraft.factions.cmd;
|
package com.massivecraft.factions.cmd;
|
||||||
|
|
||||||
import com.massivecraft.factions.cmd.relations.req.ReqBankCommandsEnabled;
|
import com.massivecraft.factions.cmd.req.ReqBankCommandsEnabled;
|
||||||
|
|
||||||
public class CmdFactionsMoney extends FactionsCommand {
|
public class CmdFactionsMoney extends FactionsCommand {
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package com.massivecraft.factions.cmd;
|
package com.massivecraft.factions.cmd;
|
||||||
|
|
||||||
import com.massivecraft.factions.Perm;
|
import com.massivecraft.factions.Perm;
|
||||||
import com.massivecraft.factions.cmd.relations.req.ReqBankCommandsEnabled;
|
import com.massivecraft.factions.cmd.req.ReqBankCommandsEnabled;
|
||||||
import com.massivecraft.factions.cmd.type.TypeFaction;
|
import com.massivecraft.factions.cmd.type.TypeFaction;
|
||||||
import com.massivecraft.factions.entity.Faction;
|
import com.massivecraft.factions.entity.Faction;
|
||||||
import com.massivecraft.factions.integration.Econ;
|
import com.massivecraft.factions.integration.Econ;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package com.massivecraft.factions.cmd;
|
package com.massivecraft.factions.cmd;
|
||||||
|
|
||||||
import com.massivecraft.factions.Factions;
|
import com.massivecraft.factions.Factions;
|
||||||
import com.massivecraft.factions.cmd.relations.req.ReqBankCommandsEnabled;
|
import com.massivecraft.factions.cmd.req.ReqBankCommandsEnabled;
|
||||||
import com.massivecraft.factions.cmd.type.TypeFaction;
|
import com.massivecraft.factions.cmd.type.TypeFaction;
|
||||||
import com.massivecraft.factions.entity.Faction;
|
import com.massivecraft.factions.entity.Faction;
|
||||||
import com.massivecraft.factions.entity.MConf;
|
import com.massivecraft.factions.entity.MConf;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package com.massivecraft.factions.cmd;
|
package com.massivecraft.factions.cmd;
|
||||||
|
|
||||||
import com.massivecraft.factions.Factions;
|
import com.massivecraft.factions.Factions;
|
||||||
import com.massivecraft.factions.cmd.relations.req.ReqBankCommandsEnabled;
|
import com.massivecraft.factions.cmd.req.ReqBankCommandsEnabled;
|
||||||
import com.massivecraft.factions.cmd.type.TypeFaction;
|
import com.massivecraft.factions.cmd.type.TypeFaction;
|
||||||
import com.massivecraft.factions.entity.Faction;
|
import com.massivecraft.factions.entity.Faction;
|
||||||
import com.massivecraft.factions.entity.MConf;
|
import com.massivecraft.factions.entity.MConf;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package com.massivecraft.factions.cmd;
|
package com.massivecraft.factions.cmd;
|
||||||
|
|
||||||
import com.massivecraft.factions.Factions;
|
import com.massivecraft.factions.Factions;
|
||||||
import com.massivecraft.factions.cmd.relations.req.ReqBankCommandsEnabled;
|
import com.massivecraft.factions.cmd.req.ReqBankCommandsEnabled;
|
||||||
import com.massivecraft.factions.cmd.type.TypeFaction;
|
import com.massivecraft.factions.cmd.type.TypeFaction;
|
||||||
import com.massivecraft.factions.cmd.type.TypeMPlayer;
|
import com.massivecraft.factions.cmd.type.TypeMPlayer;
|
||||||
import com.massivecraft.factions.entity.Faction;
|
import com.massivecraft.factions.entity.Faction;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package com.massivecraft.factions.cmd;
|
package com.massivecraft.factions.cmd;
|
||||||
|
|
||||||
import com.massivecraft.factions.Factions;
|
import com.massivecraft.factions.Factions;
|
||||||
import com.massivecraft.factions.cmd.relations.req.ReqBankCommandsEnabled;
|
import com.massivecraft.factions.cmd.req.ReqBankCommandsEnabled;
|
||||||
import com.massivecraft.factions.cmd.type.TypeFaction;
|
import com.massivecraft.factions.cmd.type.TypeFaction;
|
||||||
import com.massivecraft.factions.cmd.type.TypeMPlayer;
|
import com.massivecraft.factions.cmd.type.TypeMPlayer;
|
||||||
import com.massivecraft.factions.entity.Faction;
|
import com.massivecraft.factions.entity.Faction;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package com.massivecraft.factions.cmd;
|
package com.massivecraft.factions.cmd;
|
||||||
|
|
||||||
import com.massivecraft.factions.Factions;
|
import com.massivecraft.factions.Factions;
|
||||||
import com.massivecraft.factions.cmd.relations.req.ReqBankCommandsEnabled;
|
import com.massivecraft.factions.cmd.req.ReqBankCommandsEnabled;
|
||||||
import com.massivecraft.factions.cmd.type.TypeFaction;
|
import com.massivecraft.factions.cmd.type.TypeFaction;
|
||||||
import com.massivecraft.factions.entity.Faction;
|
import com.massivecraft.factions.entity.Faction;
|
||||||
import com.massivecraft.factions.entity.MConf;
|
import com.massivecraft.factions.entity.MConf;
|
||||||
|
@ -7,7 +7,6 @@ import com.massivecraft.factions.entity.MPlayer;
|
|||||||
import com.massivecraft.massivecore.MassiveException;
|
import com.massivecraft.massivecore.MassiveException;
|
||||||
import com.massivecraft.massivecore.command.requirement.RequirementIsntPlayer;
|
import com.massivecraft.massivecore.command.requirement.RequirementIsntPlayer;
|
||||||
import com.massivecraft.massivecore.ps.PS;
|
import com.massivecraft.massivecore.ps.PS;
|
||||||
import org.bukkit.command.CommandException;
|
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
@ -50,7 +49,7 @@ public class CmdFactionsSetOneLocation extends FactionsCommand {
|
|||||||
// Apply / Inform
|
// Apply / Inform
|
||||||
if (this.claim) {
|
if (this.claim) {
|
||||||
if (!BoardColl.get().getFactionAt(chunk).isNone()) {
|
if (!BoardColl.get().getFactionAt(chunk).isNone()) {
|
||||||
throw new CommandException("<b>Only <h>wilderness<b> can be claimed using this method.");
|
throw new MassiveException().setMsg("<b>Only <h>wilderness<b> can be claimed using this method.");
|
||||||
}
|
}
|
||||||
msender.tryClaim(player.getFaction(), chunks);
|
msender.tryClaim(player.getFaction(), chunks);
|
||||||
} else {
|
} else {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package com.massivecraft.factions.cmd;
|
package com.massivecraft.factions.cmd;
|
||||||
|
|
||||||
import com.massivecraft.factions.cmd.relations.req.ReqTaxEnabled;
|
import com.massivecraft.factions.cmd.req.ReqTaxEnabled;
|
||||||
import com.massivecraft.factions.cmd.type.TypeFaction;
|
import com.massivecraft.factions.cmd.type.TypeFaction;
|
||||||
import com.massivecraft.factions.entity.Faction;
|
import com.massivecraft.factions.entity.Faction;
|
||||||
import com.massivecraft.factions.entity.MFlag;
|
import com.massivecraft.factions.entity.MFlag;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package com.massivecraft.factions.cmd;
|
package com.massivecraft.factions.cmd;
|
||||||
|
|
||||||
import com.massivecraft.factions.cmd.relations.req.ReqTaxEnabled;
|
import com.massivecraft.factions.cmd.req.ReqTaxEnabled;
|
||||||
import com.massivecraft.factions.cmd.type.TypeMPlayer;
|
import com.massivecraft.factions.cmd.type.TypeMPlayer;
|
||||||
import com.massivecraft.factions.entity.MPlayer;
|
import com.massivecraft.factions.entity.MPlayer;
|
||||||
import com.massivecraft.massivecore.MassiveException;
|
import com.massivecraft.massivecore.MassiveException;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package com.massivecraft.factions.cmd;
|
package com.massivecraft.factions.cmd;
|
||||||
|
|
||||||
import com.massivecraft.factions.cmd.relations.req.ReqTaxEnabled;
|
import com.massivecraft.factions.cmd.req.ReqTaxEnabled;
|
||||||
import com.massivecraft.factions.task.TaskTax;
|
import com.massivecraft.factions.task.TaskTax;
|
||||||
|
|
||||||
public class CmdFactionsTaxRun extends FactionsCommand {
|
public class CmdFactionsTaxRun extends FactionsCommand {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package com.massivecraft.factions.cmd;
|
package com.massivecraft.factions.cmd;
|
||||||
|
|
||||||
import com.massivecraft.factions.cmd.relations.req.ReqTaxEnabled;
|
import com.massivecraft.factions.cmd.req.ReqTaxEnabled;
|
||||||
import com.massivecraft.factions.cmd.type.TypeFaction;
|
import com.massivecraft.factions.cmd.type.TypeFaction;
|
||||||
import com.massivecraft.factions.cmd.type.TypeTaxable;
|
import com.massivecraft.factions.cmd.type.TypeTaxable;
|
||||||
import com.massivecraft.factions.entity.Faction;
|
import com.massivecraft.factions.entity.Faction;
|
||||||
|
@ -72,9 +72,22 @@ public class CmdFactionsWarpGo extends FactionsCommandWarp {
|
|||||||
Location locationHere = me.getLocation().clone();
|
Location locationHere = me.getLocation().clone();
|
||||||
|
|
||||||
// if player is not in a safe zone or their own faction territory, only allow teleport if no enemies are nearby
|
// if player is not in a safe zone or their own faction territory, only allow teleport if no enemies are nearby
|
||||||
if (MConf.get().warpsTeleportAllowedEnemyDistance > 0 && factionHere.getFlag(MFlag.getFlagPvp()) &&
|
if
|
||||||
(!msender.isInOwnTerritory() || (msender.isInOwnTerritory() &&
|
(
|
||||||
!MConf.get().warpsTeleportIgnoreEnemiesIfInOwnTerritory))) {
|
MConf.get().warpsTeleportAllowedEnemyDistance > 0
|
||||||
|
&&
|
||||||
|
factionHere.getFlag(MFlag.getFlagPvp())
|
||||||
|
&&
|
||||||
|
(
|
||||||
|
!msender.isInOwnTerritory()
|
||||||
|
||
|
||||||
|
(
|
||||||
|
msender.isInOwnTerritory()
|
||||||
|
&&
|
||||||
|
!MConf.get().warpsTeleportIgnoreEnemiesIfInOwnTerritory
|
||||||
|
)
|
||||||
|
)
|
||||||
|
) {
|
||||||
World w = locationHere.getWorld();
|
World w = locationHere.getWorld();
|
||||||
double x = locationHere.getX();
|
double x = locationHere.getX();
|
||||||
double y = locationHere.getY();
|
double y = locationHere.getY();
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package com.massivecraft.factions.cmd;
|
package com.massivecraft.factions.cmd;
|
||||||
|
|
||||||
import com.massivecraft.factions.cmd.relations.req.ReqFactionWarpsEnabled;
|
import com.massivecraft.factions.cmd.req.ReqFactionWarpsEnabled;
|
||||||
import com.massivecraft.massivecore.mson.Mson;
|
import com.massivecraft.massivecore.mson.Mson;
|
||||||
|
|
||||||
public class FactionsCommandDocumentation extends FactionsCommand {
|
public class FactionsCommandDocumentation extends FactionsCommand {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package com.massivecraft.factions.cmd;
|
package com.massivecraft.factions.cmd;
|
||||||
|
|
||||||
import com.massivecraft.factions.cmd.relations.req.ReqFactionWarpsEnabled;
|
import com.massivecraft.factions.cmd.req.ReqFactionWarpsEnabled;
|
||||||
import com.massivecraft.factions.entity.MConf;
|
import com.massivecraft.factions.entity.MConf;
|
||||||
import com.massivecraft.massivecore.command.Visibility;
|
import com.massivecraft.massivecore.command.Visibility;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.factions.cmd.relations.req;
|
package com.massivecraft.factions.cmd.req;
|
||||||
|
|
||||||
import com.massivecraft.factions.entity.MConf;
|
import com.massivecraft.factions.entity.MConf;
|
||||||
import com.massivecraft.factions.integration.Econ;
|
import com.massivecraft.factions.integration.Econ;
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.factions.cmd.relations.req;
|
package com.massivecraft.factions.cmd.req;
|
||||||
|
|
||||||
import com.massivecraft.factions.entity.MConf;
|
import com.massivecraft.factions.entity.MConf;
|
||||||
import com.massivecraft.massivecore.command.MassiveCommand;
|
import com.massivecraft.massivecore.command.MassiveCommand;
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.factions.cmd.relations.req;
|
package com.massivecraft.factions.cmd.req;
|
||||||
|
|
||||||
import com.massivecraft.factions.entity.MPlayer;
|
import com.massivecraft.factions.entity.MPlayer;
|
||||||
import com.massivecraft.massivecore.command.MassiveCommand;
|
import com.massivecraft.massivecore.command.MassiveCommand;
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.factions.cmd.relations.req;
|
package com.massivecraft.factions.cmd.req;
|
||||||
|
|
||||||
import com.massivecraft.factions.entity.MPlayer;
|
import com.massivecraft.factions.entity.MPlayer;
|
||||||
import com.massivecraft.massivecore.command.MassiveCommand;
|
import com.massivecraft.massivecore.command.MassiveCommand;
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.factions.cmd.relations.req;
|
package com.massivecraft.factions.cmd.req;
|
||||||
|
|
||||||
import com.massivecraft.factions.entity.MPlayer;
|
import com.massivecraft.factions.entity.MPlayer;
|
||||||
import com.massivecraft.factions.entity.Rank;
|
import com.massivecraft.factions.entity.Rank;
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.factions.cmd.relations.req;
|
package com.massivecraft.factions.cmd.req;
|
||||||
|
|
||||||
import com.massivecraft.factions.task.TaskTax;
|
import com.massivecraft.factions.task.TaskTax;
|
||||||
import com.massivecraft.massivecore.command.MassiveCommand;
|
import com.massivecraft.massivecore.command.MassiveCommand;
|
Loading…
Reference in New Issue
Block a user