MCore changes

This commit is contained in:
Olof Larsson
2013-05-03 09:58:43 +02:00
parent cf03bd5b8a
commit 7c10a6c83f
9 changed files with 17 additions and 26 deletions

View File

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

View File

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