2011-10-01 17:59:46 +00:00
|
|
|
package me.StevenLawson.TotalFreedomMod;
|
|
|
|
|
2011-10-10 12:09:19 +00:00
|
|
|
import java.util.ArrayList;
|
2011-11-08 00:29:33 +00:00
|
|
|
import java.util.HashMap;
|
2012-11-21 00:57:53 +00:00
|
|
|
import java.util.Iterator;
|
2011-10-10 12:09:19 +00:00
|
|
|
import java.util.List;
|
2011-11-08 00:29:33 +00:00
|
|
|
import java.util.Map;
|
2012-11-21 00:57:53 +00:00
|
|
|
import java.util.Map.Entry;
|
2011-10-16 06:00:37 +00:00
|
|
|
import org.bukkit.Bukkit;
|
2011-10-10 12:09:19 +00:00
|
|
|
import org.bukkit.Location;
|
|
|
|
import org.bukkit.Material;
|
2012-03-09 19:01:04 +00:00
|
|
|
import org.bukkit.entity.Arrow;
|
|
|
|
import org.bukkit.entity.EntityType;
|
|
|
|
import org.bukkit.entity.LivingEntity;
|
|
|
|
import org.bukkit.entity.Player;
|
2012-12-09 03:42:29 +00:00
|
|
|
import org.bukkit.scheduler.BukkitTask;
|
2011-10-10 12:09:19 +00:00
|
|
|
|
2011-10-02 04:23:22 +00:00
|
|
|
public class TFM_UserInfo
|
2011-10-01 17:59:46 +00:00
|
|
|
{
|
2012-11-21 00:57:53 +00:00
|
|
|
public final static Map<Player, TFM_UserInfo> userinfo = new HashMap<Player, TFM_UserInfo>();
|
|
|
|
private final Player player;
|
|
|
|
private final String ip_address;
|
|
|
|
private final String player_name;
|
2011-10-01 17:59:46 +00:00
|
|
|
private boolean user_frozen = false;
|
2012-09-14 22:49:44 +00:00
|
|
|
private boolean is_muted = false;
|
2012-09-18 10:13:06 +00:00
|
|
|
private boolean is_halted = false;
|
2011-10-01 17:59:46 +00:00
|
|
|
private int msg_count = 0;
|
2011-10-05 19:07:45 +00:00
|
|
|
private int block_destroy_total = 0;
|
2011-10-18 04:08:40 +00:00
|
|
|
private int block_place_total = 0;
|
2011-10-05 19:07:45 +00:00
|
|
|
private int freecam_destroy_count = 0;
|
|
|
|
private int freecam_place_count = 0;
|
2011-10-10 12:09:19 +00:00
|
|
|
private boolean user_caged = false;
|
|
|
|
private Location user_cage_pos;
|
|
|
|
private List<TFM_BlockData> user_cage_history = new ArrayList<TFM_BlockData>();
|
2011-10-16 06:00:37 +00:00
|
|
|
private Material cage_material_outer = Material.GLASS;
|
|
|
|
private Material cage_material_inner = Material.AIR;
|
|
|
|
private boolean is_orbiting = false;
|
|
|
|
private double orbit_strength = 10.0;
|
|
|
|
private boolean mob_thrower_enabled = false;
|
2012-03-03 04:29:54 +00:00
|
|
|
private EntityType mob_thrower_creature = EntityType.PIG;
|
2011-10-16 06:00:37 +00:00
|
|
|
private double mob_thrower_speed = 4.0;
|
2011-10-18 04:08:40 +00:00
|
|
|
private List<LivingEntity> mob_thrower_queue = new ArrayList<LivingEntity>();
|
2012-12-09 03:42:29 +00:00
|
|
|
private BukkitTask mp44_schedule_id = null;
|
2011-10-21 17:02:07 +00:00
|
|
|
private boolean mp44_armed = false;
|
|
|
|
private boolean mp44_firing = false;
|
2012-12-09 03:42:29 +00:00
|
|
|
private BukkitTask lockup_schedule_id = null;
|
2012-11-27 19:02:39 +00:00
|
|
|
private String last_message = "";
|
2012-11-28 18:31:01 +00:00
|
|
|
private boolean in_adminchat = false;
|
2012-12-08 01:01:52 +00:00
|
|
|
private boolean all_commands_blocked = false;
|
2012-12-20 01:25:29 +00:00
|
|
|
private Boolean superadmin_id_verified = null;
|
2012-12-22 03:22:08 +00:00
|
|
|
private String last_command = "";
|
2011-10-02 04:18:52 +00:00
|
|
|
|
2012-11-21 00:57:53 +00:00
|
|
|
public TFM_UserInfo(Player player)
|
2011-10-01 17:59:46 +00:00
|
|
|
{
|
2011-10-21 17:02:07 +00:00
|
|
|
this.player = player;
|
2012-11-21 00:57:53 +00:00
|
|
|
this.ip_address = player.getAddress().getAddress().getHostAddress();
|
|
|
|
this.player_name = player.getName();
|
2011-10-01 17:59:46 +00:00
|
|
|
}
|
2012-09-18 21:25:37 +00:00
|
|
|
|
2011-11-08 00:29:33 +00:00
|
|
|
public static TFM_UserInfo getPlayerData(Player p)
|
2011-10-16 06:00:37 +00:00
|
|
|
{
|
2011-11-08 00:29:33 +00:00
|
|
|
TFM_UserInfo playerdata = TFM_UserInfo.userinfo.get(p);
|
2012-11-21 00:57:53 +00:00
|
|
|
|
|
|
|
if (playerdata == null)
|
|
|
|
{
|
|
|
|
Iterator<Entry<Player, TFM_UserInfo>> it = userinfo.entrySet().iterator();
|
|
|
|
while (it.hasNext())
|
|
|
|
{
|
|
|
|
Entry<Player, TFM_UserInfo> pair = it.next();
|
|
|
|
TFM_UserInfo playerdata_test = pair.getValue();
|
|
|
|
|
|
|
|
if (playerdata_test.player_name.equalsIgnoreCase(p.getName()))
|
|
|
|
{
|
|
|
|
if (Bukkit.getOnlineMode())
|
|
|
|
{
|
|
|
|
playerdata = playerdata_test;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if (playerdata_test.ip_address.equalsIgnoreCase(p.getAddress().getAddress().getHostAddress()))
|
|
|
|
{
|
|
|
|
playerdata = playerdata_test;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-10-16 06:00:37 +00:00
|
|
|
if (playerdata == null)
|
|
|
|
{
|
2011-10-21 17:02:07 +00:00
|
|
|
playerdata = new TFM_UserInfo(p);
|
2011-11-08 00:29:33 +00:00
|
|
|
TFM_UserInfo.userinfo.put(p, playerdata);
|
2011-10-16 06:00:37 +00:00
|
|
|
}
|
2012-11-21 00:57:53 +00:00
|
|
|
|
2011-10-16 06:00:37 +00:00
|
|
|
return playerdata;
|
|
|
|
}
|
2012-09-18 21:25:37 +00:00
|
|
|
|
2012-11-21 01:09:24 +00:00
|
|
|
public String getIpAddress()
|
|
|
|
{
|
|
|
|
return ip_address;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getPlayerName()
|
|
|
|
{
|
|
|
|
return player_name;
|
|
|
|
}
|
|
|
|
|
2011-10-16 06:00:37 +00:00
|
|
|
public boolean isOrbiting()
|
|
|
|
{
|
|
|
|
return this.is_orbiting;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void startOrbiting(double orbit_strength)
|
|
|
|
{
|
|
|
|
this.is_orbiting = true;
|
|
|
|
this.orbit_strength = orbit_strength;
|
|
|
|
}
|
2012-09-18 21:25:37 +00:00
|
|
|
|
2011-10-16 06:00:37 +00:00
|
|
|
public void stopOrbiting()
|
|
|
|
{
|
|
|
|
this.is_orbiting = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public double orbitStrength()
|
|
|
|
{
|
|
|
|
return this.orbit_strength;
|
|
|
|
}
|
2011-10-14 23:29:09 +00:00
|
|
|
|
2011-10-10 12:09:19 +00:00
|
|
|
public void setCaged(boolean state)
|
|
|
|
{
|
|
|
|
this.user_caged = state;
|
|
|
|
}
|
2011-10-14 23:29:09 +00:00
|
|
|
|
2011-10-10 12:09:19 +00:00
|
|
|
public void setCaged(boolean state, Location location, Material material_outer, Material material_inner)
|
|
|
|
{
|
|
|
|
this.user_caged = state;
|
|
|
|
this.user_cage_pos = location;
|
|
|
|
this.cage_material_outer = material_outer;
|
|
|
|
this.cage_material_inner = material_inner;
|
|
|
|
}
|
2011-10-14 23:29:09 +00:00
|
|
|
|
2011-10-10 12:09:19 +00:00
|
|
|
public boolean isCaged()
|
|
|
|
{
|
|
|
|
return this.user_caged;
|
|
|
|
}
|
2012-09-18 21:25:37 +00:00
|
|
|
|
2011-10-14 23:29:09 +00:00
|
|
|
public enum CageLayer
|
2011-10-10 12:09:19 +00:00
|
|
|
{
|
2011-10-14 23:29:09 +00:00
|
|
|
INNER, OUTER
|
|
|
|
}
|
|
|
|
|
|
|
|
public Material getCageMaterial(CageLayer layer)
|
|
|
|
{
|
|
|
|
switch (layer)
|
2011-10-10 12:09:19 +00:00
|
|
|
{
|
2011-10-14 23:29:09 +00:00
|
|
|
case OUTER:
|
|
|
|
return this.cage_material_outer;
|
|
|
|
case INNER:
|
|
|
|
return this.cage_material_inner;
|
|
|
|
default:
|
|
|
|
return this.cage_material_outer;
|
2011-10-10 12:09:19 +00:00
|
|
|
}
|
|
|
|
}
|
2011-10-14 23:29:09 +00:00
|
|
|
|
2011-10-10 12:09:19 +00:00
|
|
|
public Location getCagePos()
|
|
|
|
{
|
|
|
|
return this.user_cage_pos;
|
|
|
|
}
|
2011-10-14 23:29:09 +00:00
|
|
|
|
2011-10-10 12:09:19 +00:00
|
|
|
public void clearHistory()
|
|
|
|
{
|
|
|
|
this.user_cage_history.clear();
|
|
|
|
}
|
2011-10-14 23:29:09 +00:00
|
|
|
|
2011-10-10 12:09:19 +00:00
|
|
|
public void insertHistoryBlock(Location location, Material material)
|
|
|
|
{
|
|
|
|
this.user_cage_history.add(new TFM_BlockData(location, material));
|
|
|
|
}
|
2011-10-14 23:29:09 +00:00
|
|
|
|
2011-10-10 12:09:19 +00:00
|
|
|
public void regenerateHistory()
|
|
|
|
{
|
|
|
|
for (TFM_BlockData blockdata : this.user_cage_history)
|
|
|
|
{
|
|
|
|
blockdata.location.getBlock().setType(blockdata.material);
|
|
|
|
}
|
|
|
|
}
|
2011-10-14 23:29:09 +00:00
|
|
|
|
2011-10-10 12:09:19 +00:00
|
|
|
class TFM_BlockData
|
|
|
|
{
|
|
|
|
public Material material;
|
|
|
|
public Location location;
|
|
|
|
|
|
|
|
public TFM_BlockData(Location location, Material material)
|
|
|
|
{
|
|
|
|
this.location = location;
|
|
|
|
this.material = material;
|
|
|
|
}
|
|
|
|
}
|
2011-10-14 23:29:09 +00:00
|
|
|
|
2011-10-01 17:59:46 +00:00
|
|
|
public boolean isFrozen()
|
|
|
|
{
|
|
|
|
return this.user_frozen;
|
|
|
|
}
|
2011-10-02 04:18:52 +00:00
|
|
|
|
2011-10-01 17:59:46 +00:00
|
|
|
public void setFrozen(boolean fr)
|
|
|
|
{
|
|
|
|
this.user_frozen = fr;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void resetMsgCount()
|
|
|
|
{
|
|
|
|
this.msg_count = 0;
|
|
|
|
}
|
2011-10-02 04:18:52 +00:00
|
|
|
|
2011-10-01 17:59:46 +00:00
|
|
|
public void incrementMsgCount()
|
|
|
|
{
|
|
|
|
this.msg_count++;
|
|
|
|
}
|
2011-10-02 04:18:52 +00:00
|
|
|
|
2011-10-01 17:59:46 +00:00
|
|
|
public int getMsgCount()
|
|
|
|
{
|
|
|
|
return this.msg_count;
|
|
|
|
}
|
2011-10-02 04:18:52 +00:00
|
|
|
|
2011-10-01 17:59:46 +00:00
|
|
|
public void incrementBlockDestroyCount()
|
|
|
|
{
|
2011-10-05 19:07:45 +00:00
|
|
|
this.block_destroy_total++;
|
2011-10-01 17:59:46 +00:00
|
|
|
}
|
2011-10-02 04:18:52 +00:00
|
|
|
|
2011-10-01 17:59:46 +00:00
|
|
|
public int getBlockDestroyCount()
|
|
|
|
{
|
2011-10-05 19:07:45 +00:00
|
|
|
return this.block_destroy_total;
|
2011-10-01 17:59:46 +00:00
|
|
|
}
|
2011-10-02 04:18:52 +00:00
|
|
|
|
2011-10-01 17:59:46 +00:00
|
|
|
public void resetBlockDestroyCount()
|
|
|
|
{
|
2011-10-05 19:07:45 +00:00
|
|
|
this.block_destroy_total = 0;
|
|
|
|
}
|
2012-09-18 21:25:37 +00:00
|
|
|
|
2011-10-18 04:08:40 +00:00
|
|
|
public void incrementBlockPlaceCount()
|
|
|
|
{
|
|
|
|
this.block_place_total++;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getBlockPlaceCount()
|
|
|
|
{
|
|
|
|
return this.block_place_total;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void resetBlockPlaceCount()
|
|
|
|
{
|
|
|
|
this.block_place_total = 0;
|
|
|
|
}
|
2011-10-14 23:29:09 +00:00
|
|
|
|
2011-10-05 19:07:45 +00:00
|
|
|
public void incrementFreecamDestroyCount()
|
|
|
|
{
|
|
|
|
this.freecam_destroy_count++;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getFreecamDestroyCount()
|
|
|
|
{
|
|
|
|
return this.freecam_destroy_count;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void resetFreecamDestroyCount()
|
|
|
|
{
|
|
|
|
this.freecam_destroy_count = 0;
|
|
|
|
}
|
2011-10-14 23:29:09 +00:00
|
|
|
|
2011-10-05 19:07:45 +00:00
|
|
|
public void incrementFreecamPlaceCount()
|
|
|
|
{
|
|
|
|
this.freecam_place_count++;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getFreecamPlaceCount()
|
|
|
|
{
|
|
|
|
return this.freecam_place_count;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void resetFreecamPlaceCount()
|
|
|
|
{
|
|
|
|
this.freecam_place_count = 0;
|
2011-10-01 17:59:46 +00:00
|
|
|
}
|
2011-10-16 06:00:37 +00:00
|
|
|
|
2012-03-03 04:29:54 +00:00
|
|
|
public void enableMobThrower(EntityType mob_thrower_creature, double mob_thrower_speed)
|
2011-10-16 06:00:37 +00:00
|
|
|
{
|
|
|
|
this.mob_thrower_enabled = true;
|
|
|
|
this.mob_thrower_creature = mob_thrower_creature;
|
|
|
|
this.mob_thrower_speed = mob_thrower_speed;
|
|
|
|
}
|
2012-09-18 21:25:37 +00:00
|
|
|
|
2011-10-16 06:00:37 +00:00
|
|
|
public void disableMobThrower()
|
|
|
|
{
|
|
|
|
this.mob_thrower_enabled = false;
|
|
|
|
}
|
|
|
|
|
2012-03-03 04:29:54 +00:00
|
|
|
public EntityType mobThrowerCreature()
|
2011-10-16 06:00:37 +00:00
|
|
|
{
|
|
|
|
return this.mob_thrower_creature;
|
|
|
|
}
|
|
|
|
|
|
|
|
public double mobThrowerSpeed()
|
|
|
|
{
|
|
|
|
return this.mob_thrower_speed;
|
|
|
|
}
|
2012-09-18 21:25:37 +00:00
|
|
|
|
2011-10-16 06:00:37 +00:00
|
|
|
public boolean mobThrowerEnabled()
|
|
|
|
{
|
|
|
|
return this.mob_thrower_enabled;
|
|
|
|
}
|
2012-09-18 21:25:37 +00:00
|
|
|
|
2011-10-16 06:00:37 +00:00
|
|
|
public void enqueueMob(LivingEntity mob)
|
|
|
|
{
|
2011-10-18 04:08:40 +00:00
|
|
|
mob_thrower_queue.add(mob);
|
|
|
|
if (mob_thrower_queue.size() > 4)
|
2011-10-16 06:00:37 +00:00
|
|
|
{
|
2011-10-18 04:08:40 +00:00
|
|
|
LivingEntity oldmob = mob_thrower_queue.remove(0);
|
2011-10-16 06:00:37 +00:00
|
|
|
if (oldmob != null)
|
|
|
|
{
|
2012-07-22 23:15:00 +00:00
|
|
|
oldmob.damage(500);
|
2011-10-16 06:00:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2012-09-18 21:25:37 +00:00
|
|
|
|
2011-10-21 17:02:07 +00:00
|
|
|
public void startArrowShooter(TotalFreedomMod plugin)
|
2011-10-16 06:00:37 +00:00
|
|
|
{
|
2011-10-21 17:02:07 +00:00
|
|
|
this.stopArrowShooter();
|
2012-12-09 03:42:29 +00:00
|
|
|
this.mp44_schedule_id = plugin.getServer().getScheduler().runTaskTimerAsynchronously(plugin, new ArrowShooter(this.player), 1L, 1L);
|
2011-10-21 17:02:07 +00:00
|
|
|
mp44_firing = true;
|
2011-10-16 06:00:37 +00:00
|
|
|
}
|
2012-09-18 21:25:37 +00:00
|
|
|
|
2011-10-19 00:37:00 +00:00
|
|
|
public void stopArrowShooter()
|
2011-10-16 06:00:37 +00:00
|
|
|
{
|
2012-12-09 03:42:29 +00:00
|
|
|
if (this.mp44_schedule_id != null)
|
2011-10-16 06:00:37 +00:00
|
|
|
{
|
2012-12-09 03:42:29 +00:00
|
|
|
this.mp44_schedule_id.cancel();
|
|
|
|
this.mp44_schedule_id = null;
|
2011-10-16 06:00:37 +00:00
|
|
|
}
|
2011-10-21 17:02:07 +00:00
|
|
|
mp44_firing = false;
|
|
|
|
}
|
2012-09-18 21:25:37 +00:00
|
|
|
|
2011-10-21 17:02:07 +00:00
|
|
|
class ArrowShooter implements Runnable
|
|
|
|
{
|
|
|
|
private Player _player;
|
2012-09-18 21:25:37 +00:00
|
|
|
|
2011-10-21 17:02:07 +00:00
|
|
|
public ArrowShooter(Player player)
|
|
|
|
{
|
|
|
|
this._player = player;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void run()
|
|
|
|
{
|
2012-03-03 20:48:41 +00:00
|
|
|
Arrow shot_arrow = _player.launchProjectile(Arrow.class);
|
2011-10-21 17:02:07 +00:00
|
|
|
shot_arrow.setVelocity(shot_arrow.getVelocity().multiply(2.0));
|
|
|
|
}
|
|
|
|
}
|
2012-09-18 21:25:37 +00:00
|
|
|
|
2011-10-21 17:02:07 +00:00
|
|
|
public void armMP44()
|
|
|
|
{
|
|
|
|
mp44_armed = true;
|
|
|
|
this.stopArrowShooter();
|
|
|
|
}
|
2012-09-18 21:25:37 +00:00
|
|
|
|
2011-10-21 17:02:07 +00:00
|
|
|
public void disarmMP44()
|
|
|
|
{
|
|
|
|
mp44_armed = false;
|
|
|
|
this.stopArrowShooter();
|
|
|
|
}
|
2012-09-18 21:25:37 +00:00
|
|
|
|
2011-10-21 17:02:07 +00:00
|
|
|
public boolean isMP44Armed()
|
|
|
|
{
|
|
|
|
return this.mp44_armed;
|
|
|
|
}
|
2012-09-18 21:25:37 +00:00
|
|
|
|
2011-10-21 17:02:07 +00:00
|
|
|
public boolean toggleMP44Firing()
|
|
|
|
{
|
|
|
|
this.mp44_firing = !this.mp44_firing;
|
|
|
|
return this.mp44_firing;
|
2011-10-16 06:00:37 +00:00
|
|
|
}
|
2012-09-14 22:49:44 +00:00
|
|
|
|
|
|
|
public boolean isMuted()
|
|
|
|
{
|
|
|
|
return is_muted;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setMuted(boolean is_muted)
|
|
|
|
{
|
|
|
|
this.is_muted = is_muted;
|
|
|
|
}
|
2012-09-18 21:25:37 +00:00
|
|
|
|
2012-09-18 10:13:06 +00:00
|
|
|
public boolean isHalted()
|
|
|
|
{
|
2012-09-18 21:25:37 +00:00
|
|
|
return is_halted;
|
2012-09-18 10:13:06 +00:00
|
|
|
}
|
2012-09-18 21:25:37 +00:00
|
|
|
|
2012-09-18 10:13:06 +00:00
|
|
|
public void setHalted(boolean is_halted)
|
|
|
|
{
|
2012-09-18 21:25:37 +00:00
|
|
|
this.is_halted = is_halted;
|
2012-09-18 10:13:06 +00:00
|
|
|
}
|
2012-09-19 02:21:25 +00:00
|
|
|
|
2012-12-09 03:42:29 +00:00
|
|
|
public BukkitTask getLockupScheduleID()
|
2012-09-19 02:21:25 +00:00
|
|
|
{
|
|
|
|
return lockup_schedule_id;
|
|
|
|
}
|
|
|
|
|
2012-12-09 03:42:29 +00:00
|
|
|
public void setLockupScheduleID(BukkitTask lockup_schedule_id)
|
2012-09-19 02:21:25 +00:00
|
|
|
{
|
|
|
|
this.lockup_schedule_id = lockup_schedule_id;
|
|
|
|
}
|
2012-11-27 19:02:39 +00:00
|
|
|
|
|
|
|
public void setLastMessage(String last_message)
|
|
|
|
{
|
|
|
|
this.last_message = last_message;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getLastMessage()
|
|
|
|
{
|
|
|
|
return this.last_message;
|
|
|
|
}
|
2012-11-28 18:31:01 +00:00
|
|
|
|
|
|
|
public void setAdminChat(boolean in_adminchat)
|
|
|
|
{
|
|
|
|
this.in_adminchat = in_adminchat;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean inAdminChat()
|
|
|
|
{
|
|
|
|
return this.in_adminchat;
|
|
|
|
}
|
2012-12-06 09:32:08 +00:00
|
|
|
|
2012-12-08 01:01:52 +00:00
|
|
|
public boolean allCommandsBlocked()
|
2012-12-06 09:32:08 +00:00
|
|
|
{
|
2012-12-08 01:01:52 +00:00
|
|
|
return this.all_commands_blocked;
|
2012-12-06 09:32:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void setCommandsBlocked(boolean commands_blocked)
|
|
|
|
{
|
2012-12-08 01:01:52 +00:00
|
|
|
this.all_commands_blocked = commands_blocked;
|
2012-12-06 09:32:08 +00:00
|
|
|
}
|
2012-12-20 01:25:29 +00:00
|
|
|
|
|
|
|
//If someone logs in to telnet or minecraft, and they are an admin, make sure that they are using a username that is associated with their IP.
|
|
|
|
//After the check for this is done in TFM_PlayerListener, never change it elsewhere.
|
|
|
|
public Boolean isSuperadminIdVerified()
|
|
|
|
{
|
|
|
|
return superadmin_id_verified;
|
|
|
|
}
|
|
|
|
|
|
|
|
//If someone logs in to telnet or minecraft, and they are an admin, make sure that they are using a username that is associated with their IP.
|
|
|
|
//After the check for this is done in TFM_PlayerListener, never change it elsewhere.
|
|
|
|
public void setSuperadminIdVerified(Boolean superadmin_id_verified)
|
|
|
|
{
|
|
|
|
this.superadmin_id_verified = superadmin_id_verified;
|
|
|
|
}
|
2012-12-22 03:22:08 +00:00
|
|
|
|
|
|
|
public String getLastCommand()
|
|
|
|
{
|
|
|
|
return last_command;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setLastCommand(String last_command)
|
|
|
|
{
|
|
|
|
this.last_command = last_command;
|
|
|
|
}
|
2011-10-01 17:59:46 +00:00
|
|
|
}
|