Deprecate isFreeTrialAccount

This commit is contained in:
AconiteGodOfSWG
2021-08-15 04:53:12 -04:00
parent 66d6e5e0ba
commit 8a2b1bf0e8
29 changed files with 11 additions and 306 deletions
@@ -990,11 +990,6 @@ public class player_structure extends script.base_script
}
public static boolean canPlaceStructure(obj_id player, String template, location loc, obj_id deed) throws InterruptedException
{
if (isFreeTrialAccount(player))
{
sendSystemMessage(player, new string_id(STF_FILE, "no_trial_accounts"));
return false;
}
int template_idx = getStructureTableIndex(template);
LOG("LOG_CHANNEL", "player_structure::canPlaceStructure -- template_idx ->" + template_idx);
if (template_idx == -1)
@@ -1927,7 +1922,7 @@ public class player_structure extends script.base_script
}
public static boolean canPackBuilding(obj_id player, obj_id structure) throws InterruptedException
{
return !utils.isFreeTrial(player) && !isCivic(structure) && !isHarvester(structure) && !isGenerator(structure) && isOwner(structure, player);
return !isCivic(structure) && !isHarvester(structure) && !isGenerator(structure) && isOwner(structure, player);
}
public static void packBuilding(obj_id player, obj_id structure) throws InterruptedException
{
@@ -5621,10 +5616,6 @@ public class player_structure extends script.base_script
{
return false;
}
if (utils.isFreeTrial(player))
{
return false;
}
return isCommoditiesServerAvailable();
}
public static boolean canPlayerPackAbandonedStructure(obj_id player, obj_id structure) throws InterruptedException