2011-10-09 21:57:43 +02:00
|
|
|
package com.massivecraft.factions.cmd;
|
2011-10-08 23:22:02 +02:00
|
|
|
|
2013-04-24 15:14:15 +02:00
|
|
|
import com.massivecraft.factions.entity.MPlayer;
|
2013-04-22 09:37:53 +02:00
|
|
|
import com.massivecraft.factions.entity.Faction;
|
2015-11-06 02:10:29 +01:00
|
|
|
import com.massivecraft.massivecore.command.MassiveCommand;
|
2011-10-08 23:22:02 +02:00
|
|
|
|
2014-10-16 18:03:58 +02:00
|
|
|
public class FactionsCommand extends MassiveCommand
|
2011-10-08 23:22:02 +02:00
|
|
|
{
|
2013-11-11 09:31:04 +01:00
|
|
|
// -------------------------------------------- //
|
|
|
|
// FIELDS
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
2013-04-25 07:29:19 +02:00
|
|
|
public MPlayer msender;
|
2014-09-18 13:41:20 +02:00
|
|
|
public Faction msenderFaction;
|
2013-04-10 10:00:40 +02:00
|
|
|
|
2013-11-11 09:31:04 +01:00
|
|
|
// -------------------------------------------- //
|
|
|
|
// OVERRIDE
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
2011-10-09 21:57:43 +02:00
|
|
|
@Override
|
2015-10-21 19:35:41 +02:00
|
|
|
public void senderFields(boolean set)
|
2011-10-08 23:22:02 +02:00
|
|
|
{
|
2015-10-21 19:35:41 +02:00
|
|
|
this.msender = set ? MPlayer.get(sender) : null;
|
|
|
|
this.msenderFaction = set ? this.msender.getFaction() : null;
|
2014-09-13 00:50:33 +02:00
|
|
|
}
|
|
|
|
|
2011-10-08 23:22:02 +02:00
|
|
|
}
|