MCore changes
This commit is contained in:
@@ -17,6 +17,7 @@ import com.massivecraft.factions.event.FactionsEventCreate;
|
||||
import com.massivecraft.factions.event.FactionsEventMembershipChange;
|
||||
import com.massivecraft.factions.event.FactionsEventMembershipChange.MembershipChangeReason;
|
||||
import com.massivecraft.mcore.cmd.req.ReqHasPerm;
|
||||
import com.massivecraft.mcore.store.MStore;
|
||||
|
||||
public class CmdFactionsCreate extends FCommand
|
||||
{
|
||||
@@ -54,7 +55,7 @@ public class CmdFactionsCreate extends FCommand
|
||||
}
|
||||
|
||||
// Pre-Generate Id
|
||||
String factionId = coll.getIdStrategy().generate(coll);
|
||||
String factionId = MStore.createId();
|
||||
|
||||
// Event
|
||||
FactionsEventCreate createEvent = new FactionsEventCreate(sender, coll.getUniverse(), factionId, newName);
|
||||
|
@@ -47,7 +47,7 @@ public class CmdFactionsPerm extends FCommand
|
||||
|
||||
FPerm perm = this.arg(1, ARFPerm.get());
|
||||
if (perm == null) return;
|
||||
System.out.println("perm = "+perm);
|
||||
//System.out.println("perm = "+perm);
|
||||
|
||||
if ( ! this.argIsSet(2))
|
||||
{
|
||||
@@ -73,7 +73,7 @@ public class CmdFactionsPerm extends FCommand
|
||||
if (val == null) return;
|
||||
|
||||
// Do the change
|
||||
System.out.println("setRelationPermitted perm "+perm+", rel "+rel+", val "+val);
|
||||
//System.out.println("setRelationPermitted perm "+perm+", rel "+rel+", val "+val);
|
||||
faction.setRelationPermitted(perm, rel, val);
|
||||
|
||||
// The following is to make sure the leader always has the right to change perms if that is our goal.
|
||||
|
Reference in New Issue
Block a user