C#:
// Все права принадлежат дискорд сообществу https://discord.gg/VgNHPpNrz6
using System;
using UnityEngine;
using System.Text.RegularExpressions;
using Oxide.Core.Configuration;
using System.Collections.Generic;
using Oxide.Core.Plugins;
using Oxide.Core;
using Newtonsoft.Json;
using System.Collections;
using Newtonsoft.Json.Converters;
using Rust;
using System.Linq;
using Oxide.Game.Rust;
using System.Globalization;
using Facepunch;
using Newtonsoft.Json.Linq;
namespace Oxide.Plugins {
[Info("RTeleportation", "RFC1920", "1.0.92", ResourceId = 1832)]
// Thanks to the original author, Nogrod.internal class RTeleportation : RustPlugin
{
private static readonly Vector3 Up = Vector3.up;
private static readonly Vector3 Down = Vector3.down;
private const string NewLine = "\n";
private const string ConfigDefaultPermVip = "rteleportation.vip";
private const string PermHome = "rteleportation.home";
private const string PermTpR = "rteleportation.tpr";
private const string PermDeleteHome = "rteleportation.deletehome";
private const string PermHomeHomes = "rteleportation.homehomes";
private const string PermImportHomes = "rteleportation.importhomes";
private const string PermRadiusHome = "rteleportation.radiushome";
private const string PermTp = "rteleportation.tp";
private const string PermTpB = "rteleportation.tpb";
private const string PermTpConsole = "rteleportation.tpconsole";
private const string PermTpHome = "rteleportation.tphome";
private const string PermTpTown = "rteleportation.tptown";
private const string PermTpOutpost = "rteleportation.tpoutpost";
private const string PermTpBandit = "rteleportation.tpbandit";
private const string PermTpN = "rteleportation.tpn";
private const string PermTpL = "rteleportation.tpl";
private const string PermTpRemove = "rteleportation.tpremove";
private const string PermTpSave = "rteleportation.tpsave";
private const string PermWipeHomes = "rteleportation.wipehomes";
private const string PermCraftHome = "rteleportation.crafthome";
private const string PermCraftTown = "rteleportation.crafttown";
private const string PermCraftOutpost = "rteleportation.craftoutpost";
private const string PermCraftBandit = "rteleportation.craftbandit";
private const string PermCraftTpR = "rteleportation.crafttpr";
private DynamicConfigFile dataAdmin;
private DynamicConfigFile dataHome;
private DynamicConfigFile dataTPR;
private DynamicConfigFile dataTown;
private DynamicConfigFile dataOutpost;
private DynamicConfigFile dataBandit;
private Dictionary<ulong, AdminData> Admin;
private Dictionary<ulong, HomeData> Home;
private Dictionary<ulong, TeleportData> TPR;
private Dictionary<ulong, TeleportData> Town;
private Dictionary<ulong, TeleportData> Outpost;
private Dictionary<ulong, TeleportData> Bandit;
private bool changedAdmin;
private bool changedHome;
private bool changedTPR;
private bool changedTown;
private bool changedOutpost;
private bool changedBandit;
private ConfigData configData;
private float boundary;
private readonly int triggerLayer = LayerMask.GetMask("Trigger");
private readonly int groundLayer = LayerMask.GetMask("Terrain", "World");
private readonly int buildingLayer = LayerMask.GetMask("Terrain", "World", "Construction", "Deployed");
private readonly int blockLayer = LayerMask.GetMask("Construction");
private readonly Dictionary<ulong, TeleportTimer> TeleportTimers = new Dictionary<ulong, TeleportTimer>();
private readonly Dictionary<ulong, Timer> PendingRequests = new Dictionary<ulong, Timer>();
private readonly Dictionary<ulong, BasePlayer> PlayersRequests = new Dictionary<ulong, BasePlayer>();
private readonly Dictionary<int, string> ReverseBlockedItems = new Dictionary<int, string>();
private readonly HashSet<ulong> teleporting = new HashSet<ulong>();
private SortedDictionary<string, Vector3> monPos = new SortedDictionary<string, Vector3>();
private SortedDictionary<string, Vector3> monSize = new SortedDictionary<string, Vector3>();
private SortedDictionary<string, Vector3> cavePos = new SortedDictionary<string, Vector3>();
[PluginReference]
private readonly Plugin Clans, Economics, ServerRewards, Friends, RustIO;
private void DoLog(string message) {
if (configData.debug) Puts(message);
}
private class ConfigData {
public SettingsData Settings {
get;
set;
}
public GameVersionData GameVersion {
get;
set;
}
public AdminSettingsData Admin {
get;
set;
}
public HomesSettingsData Home {
get;
set;
}
public TPRData TPR {
get;
set;
}
public TownData Town {
get;
set;
}
public TownData Outpost {
get;
set;
}
public TownData Bandit {
get;
set;
}
public VersionNumber Version {
get;
set;
}
public bool debug;
}
private class SettingsData {
public string ChatName {
get;
set;
}
public bool HomesEnabled {
get;
set;
}
public bool TPREnabled {
get;
set;
}
public bool TownEnabled {
get;
set;
}
public bool OutpostEnabled {
get;
set;
}
public bool BanditEnabled {
get;
set;
}
public bool InterruptTPOnHurt {
get;
set;
}
public bool InterruptTPOnCold {
get;
set;
}
public bool InterruptTPOnHot {
get;
set;
}
public bool InterruptTPOnHostile {
get;
set;
}
public bool InterruptTPOnSafe {
get;
set;
}
public bool InterruptTPOnBalloon {
get;
set;
}
public bool InterruptTPOnCargo {
get;
set;
}
public bool InterruptTPOnRig {
get;
set;
}
public bool InterruptTPOnExcavator {
get;
set;
}
public bool InterruptTPOnLift {
get;
set;
}
public bool InterruptTPOnMonument {
get;
set;
}
public bool InterruptTPOnMounted {
get;
set;
}
public bool InterruptTPOnSwimming {
get;
set;
}
public bool InterruptAboveWater {
get;
set;
}
public bool StrictFoundationCheck {
get;
set;
}
public float CaveDistanceSmall {
get;
set;
}
public float CaveDistanceMedium {
get;
set;
}
public float CaveDistanceLarge {
get;
set;
}
public float DefaultMonumentSize {
get;
set;
}
public float MinimumTemp {
get;
set;
}
public float MaximumTemp {
get;
set;
}
public Dictionary<string, string> BlockedItems {
get;
set;
}
= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
public string BypassCMD {
get;
set;
}
public bool UseEconomics {
get;
set;
}
public bool UseServerRewards {
get;
set;
}
public bool WipeOnUpgradeOrChange {
get;
set;
}
public bool AutoGenOutpost {
get;
set;
}
public bool AutoGenBandit {
get;
set;
}
}
private class GameVersionData {
public int Network {
get;
set;
}
public int Save {
get;
set;
}
public string Level {
get;
set;
}
public string LevelURL {
get;
set;
}
public int WorldSize {
get;
set;
}
public int Seed {
get;
set;
}
}
private class AdminSettingsData {
public bool AnnounceTeleportToTarget {
get;
set;
}
public bool UseableByAdmins {
get;
set;
}
public bool UseableByModerators {
get;
set;
}
public int LocationRadius {
get;
set;
}
public int TeleportNearDefaultDistance {
get;
set;
}
}
private class HomesSettingsData {
public int HomesLimit {
get;
set;
}
public Dictionary<string, int> VIPHomesLimits {
get;
set;
}
public int Cooldown {
get;
set;
}
public int Countdown {
get;
set;
}
public int DailyLimit {
get;
set;
}
public Dictionary<string, int> VIPDailyLimits {
get;
set;
}
public Dictionary<string, int> VIPCooldowns {
get;
set;
}
public Dictionary<string, int> VIPCountdowns {
get;
set;
}
public int LocationRadius {
get;
set;
}
public bool ForceOnTopOfFoundation {
get;
set;
}
public bool CheckFoundationForOwner {
get;
set;
}
public bool UseFriends {
get;
set;
}
public bool UseClans {
get;
set;
}
public bool UseTeams {
get;
set;
}
public bool UsableOutOfBuildingBlocked {
get;
set;
}
public bool UsableIntoBuildingBlocked {
get;
set;
}
public bool CupOwnerAllowOnBuildingBlocked {
get;
set;
}
public bool AllowIceberg {
get;
set;
}
public bool AllowCave {
get;
set;
}
public bool AllowCraft {
get;
set;
}
public bool AllowAboveFoundation {
get;
set;
}
public bool CheckValidOnList {
get;
set;
}
public int Pay {
get;
set;
}
public int Bypass {
get;
set;
}
}
private class TPRData {
public int Cooldown {
get;
set;
}
public int Countdown {
get;
set;
}
public int DailyLimit {
get;
set;
}
public Dictionary<string, int> VIPDailyLimits {
get;
set;
}
public Dictionary<string, int> VIPCooldowns {
get;
set;
}
public Dictionary<string, int> VIPCountdowns {
get;
set;
}
public int RequestDuration {
get;
set;
}
public bool OffsetTPRTarget {
get;
set;
}
public bool AutoAcceptTPR {
get;
set;
}
public bool BlockTPAOnCeiling {
get;
set;
}
public bool UsableOutOfBuildingBlocked {
get;
set;
}
public bool UsableIntoBuildingBlocked {
get;
set;
}
public bool CupOwnerAllowOnBuildingBlocked {
get;
set;
}
public bool AllowCraft {
get;
set;
}
public int Pay {
get;
set;
}
public int Bypass {
get;
set;
}
}
private class TownData {
public int Cooldown {
get;
set;
}
public int Countdown {
get;
set;
}
public int DailyLimit {
get;
set;
}
public Dictionary<string, int> VIPDailyLimits {
get;
set;
}
public Dictionary<string, int> VIPCooldowns {
get;
set;
}
public Dictionary<string, int> VIPCountdowns {
get;
set;
}
public Vector3 Location {
get;
set;
}
public bool UsableOutOfBuildingBlocked {
get;
set;
}
public bool AllowCraft {
get;
set;
}
public int Pay {
get;
set;
}
public int Bypass {
get;
set;
}
}
private class AdminData {
[JsonProperty("pl")]
public Vector3 PreviousLocation {
get;
set;
}
[JsonProperty("l")]
public Dictionary<string, Vector3> Locations {
get;
set;
}
= new Dictionary<string, Vector3>(StringComparer.OrdinalIgnoreCase);
}
private class HomeData {
[JsonProperty("l")]
public Dictionary<string, Vector3> Locations {
get;
set;
}
= new Dictionary<string, Vector3>(StringComparer.OrdinalIgnoreCase);
[JsonProperty("t")]
public TeleportData Teleports {
get;
set;
}
= new TeleportData();
}
private class TeleportData {
[JsonProperty("a")]
public int Amount {
get;
set;
}
[JsonProperty("d")]
public string Date {
get;
set;
}
[JsonProperty("t")]
public int Timestamp {
get;
set;
}
}
private class TeleportTimer {
public Timer Timer {
get;
set;
}
public BasePlayer OriginPlayer {
get;
set;
}
public BasePlayer TargetPlayer {
get;
set;
}
}
protected override void LoadDefaultConfig() {
Config.Settings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
Config.Settings.Converters = new JsonConverter[] {
new UnityVector3Converter()
}
;
Config.WriteObject(new ConfigData {
Settings = new SettingsData {
ChatName = "<color=red>Teleportation</color>: ", HomesEnabled = true, TPREnabled = true, TownEnabled = true, OutpostEnabled = true, BanditEnabled = true, InterruptTPOnHurt = true, InterruptTPOnCold = false, InterruptTPOnHot = false, InterruptTPOnHostile = false, MinimumTemp = 0f, MaximumTemp = 40f, InterruptTPOnSafe = true, InterruptTPOnBalloon = true, InterruptTPOnCargo = true, InterruptTPOnRig = false, InterruptTPOnExcavator = false, InterruptTPOnLift = true, InterruptTPOnMonument = false, InterruptTPOnMounted = true, InterruptTPOnSwimming = true, InterruptAboveWater = false, StrictFoundationCheck = false, CaveDistanceSmall = 40f, CaveDistanceMedium = 60f, CaveDistanceLarge = 100f, DefaultMonumentSize = 50f, BypassCMD = "pay", UseEconomics = false, UseServerRewards = false, WipeOnUpgradeOrChange = false, AutoGenOutpost = false, AutoGenBandit = false
}
, GameVersion = new GameVersionData {
Network = Convert.ToInt32(Protocol.network), Save = Convert.ToInt32(Protocol.save), Level = ConVar.Server.level, LevelURL = ConVar.Server.levelurl, WorldSize = ConVar.Server.worldsize, Seed = ConVar.Server.seed
}
, Admin = new AdminSettingsData {
AnnounceTeleportToTarget = false, UseableByAdmins = true, UseableByModerators = true, LocationRadius = 25, TeleportNearDefaultDistance = 30
}
, Home = new HomesSettingsData {
HomesLimit = 2, VIPHomesLimits = new Dictionary<string, int> {
{
ConfigDefaultPermVip, 5
}
}
, Cooldown = 600, Countdown = 15, DailyLimit = 5, VIPDailyLimits = new Dictionary<string, int> {
{
ConfigDefaultPermVip, 5
}
}
, VIPCooldowns = new Dictionary<string, int> {
{
ConfigDefaultPermVip, 5
}
}
, VIPCountdowns = new Dictionary<string, int> {
{
ConfigDefaultPermVip, 5
}
}
, LocationRadius = 25, ForceOnTopOfFoundation = true, CheckFoundationForOwner = true, UseFriends = true, UseClans = true, UseTeams = true, AllowAboveFoundation = true, CheckValidOnList = false, CupOwnerAllowOnBuildingBlocked = true
}
, TPR = new TPRData {
Cooldown = 600, Countdown = 15, DailyLimit = 5, VIPDailyLimits = new Dictionary<string, int> {
{
ConfigDefaultPermVip, 5
}
}
, VIPCooldowns = new Dictionary<string, int> {
{
ConfigDefaultPermVip, 5
}
}
, VIPCountdowns = new Dictionary<string, int> {
{
ConfigDefaultPermVip, 5
}
}
, RequestDuration = 30, BlockTPAOnCeiling = true, OffsetTPRTarget = true, AutoAcceptTPR = false, CupOwnerAllowOnBuildingBlocked = true
}
, Town = new TownData {
Cooldown = 600, Countdown = 15, DailyLimit = 5, VIPDailyLimits = new Dictionary<string, int> {
{
ConfigDefaultPermVip, 5
}
}
, VIPCooldowns = new Dictionary<string, int> {
{
ConfigDefaultPermVip, 5
}
}
, VIPCountdowns = new Dictionary<string, int> {
{
ConfigDefaultPermVip, 5
}
}
}
, Outpost = new TownData {
Cooldown = 600, Countdown = 15, DailyLimit = 5, VIPDailyLimits = new Dictionary<string, int> {
{
ConfigDefaultPermVip, 5
}
}
, VIPCooldowns = new Dictionary<string, int> {
{
ConfigDefaultPermVip, 5
}
}
, VIPCountdowns = new Dictionary<string, int> {
{
ConfigDefaultPermVip, 5
}
}
}
, Bandit = new TownData {
Cooldown = 600, Countdown = 15, DailyLimit = 5, VIPDailyLimits = new Dictionary<string, int> {
{
ConfigDefaultPermVip, 5
}
}
, VIPCooldowns = new Dictionary<string, int> {
{
ConfigDefaultPermVip, 5
}
}
, VIPCountdowns = new Dictionary<string, int> {
{
ConfigDefaultPermVip, 5
}
}
}
, Version = Version
}
, true);
}
protected override void LoadDefaultMessages() {
lang.RegisterMessages(new Dictionary<string, string> {
{
"AdminTP", "You teleported to {0}!"
}
, {
"AdminTPTarget", "{0} teleported to you!"
}
, {
"AdminTPPlayers", "You teleported {0} to {1}!"
}
, {
"AdminTPPlayer", "{0} teleported you to {1}!"
}
, {
"AdminTPPlayerTarget", "{0} teleported {1} to you!"
}
, {
"AdminTPCoordinates", "You teleported to {0}!"
}
, {
"AdminTPTargetCoordinates", "You teleported {0} to {1}!"
}
, {
"AdminTPOutOfBounds", "You tried to teleport to a set of coordinates outside the map boundaries!"
}
, {
"AdminTPBoundaries", "X and Z values need to be between -{0} and {0} while the Y value needs to be between -100 and 2000!"
}
, {
"AdminTPLocation", "You teleported to {0}!"
}
, {
"AdminTPLocationSave", "You have saved the current location!"
}
, {
"AdminTPLocationRemove", "You have removed the location {0}!"
}
, {
"AdminLocationList", "The following locations are available:"
}
, {
"AdminLocationListEmpty", "You haven't saved any locations!"
}
, {
"AdminTPBack", "You've teleported back to your previous location!"
}
, {
"AdminTPBackSave", "Your previous location has been saved, use /tpb to teleport back!"
}
, {
"AdminTPTargetCoordinatesTarget", "{0} teleported you to {1}!"
}
, {
"AdminTPConsoleTP", "You were teleported to {0}"
}
, {
"AdminTPConsoleTPPlayer", "You were teleported to {0}"
}
, {
"AdminTPConsoleTPPlayerTarget", "{0} was teleported to you!"
}
, {
"HomeTP", "You teleported to your home '{0}'!"
}
, {
"HomeAdminTP", "You teleported to {0}'s home '{1}'!"
}
, {
"HomeSave", "You have saved the current location as your home!"
}
, {
"HomeNoFoundation", "You can only use a home location on a foundation!"
}
, {
"HomeFoundationNotOwned", "You can't use home on someone else's house."
}
, {
"HomeFoundationUnderneathFoundation", "You can't use home on a foundation that is underneath another foundation."
}
, {
"HomeFoundationNotFriendsOwned", "You or a friend need to own the house to use home!"
}
, {
"HomeRemovedInvalid", "Your home '{0}' was removed because not on a foundation or not owned!"
}
, {
"HighWallCollision", "High Wall Collision!"
}
, {
"HomeRemovedInsideBlock", "Your home '{0}' was removed because inside a foundation!"
}
, {
"HomeRemove", "You have removed your home {0}!"
}
, {
"HomeDelete", "You have removed {0}'s home '{1}'!"
}
, {
"HomeList", "The following homes are available:"
}
, {
"HomeListEmpty", "You haven't saved any homes!"
}
, {
"HomeMaxLocations", "Unable to set your home here, you have reached the maximum of {0} homes!"
}
, {
"HomeQuota", "You have set {0} of the maximum {1} homes!"
}
, {
"HomeTPStarted", "Teleporting to your home {0} in {1} seconds!"
}
, {
"PayToHome", "Standard payment of {0} applies to all home teleports!"
}
, {
"PayToTown", "Standard payment of {0} applies to all town teleports!"
}
, {
"PayToTPR", "Standard payment of {0} applies to all tprs!"
}
, {
"HomeTPCooldown", "Your teleport is currently on cooldown.You'll have to wait {0} for your next teleport."
}
, {
"HomeTPCooldownBypass", "Your teleport was currently on cooldown.You chose to bypass that by paying {0} from your balance."
}
, {
"HomeTPCooldownBypassF", "Your teleport is currently on cooldown.You do not have sufficient funds - {0} - to bypass."
}
, {
"HomeTPCooldownBypassP", "You may choose to pay {0} to bypass this cooldown."
}
, {
"HomeTPCooldownBypassP2", "Type /home NAME {0}."
}
, {
"HomeTPLimitReached", "You have reached the daily limit of {0} teleports today!"
}
, {
"HomeTPAmount", "You have {0} home teleports left today!"
}
, {
"HomesListWiped", "You have wiped all the saved home locations!"
}
, {
"HomeTPBuildingBlocked", "You can't set your home if you are not allowed to build in this zone!"
}
, {
"HomeTPSwimming", "You can't set your home while swimming!"
}
, {
"HomeTPCrafting", "You can't set your home while crafting!"
}
, {
"Request", "You've requested a teleport to {0}!"
}
, {
"RequestTarget", "{0} requested to be teleported to you! Use '/tpa' to accept!"
}
, {
"PendingRequest", "You already have a request pending, cancel that request or wait until it gets accepted or times out!"
}
, {
"PendingRequestTarget", "The player you wish to teleport to already has a pending request, try again later!"
}
, {
"NoPendingRequest", "You have no pending teleport request!"
}
, {
"AcceptOnRoof", "You can't accept a teleport while you're on a ceiling, get to ground level!"
}
, {
"Accept", "{0} has accepted your teleport request! Teleporting in {1} seconds!"
}
, {
"AcceptTarget", "You've accepted the teleport request of {0}!"
}
, {
"NotAllowed", "You are not allowed to use this command!"
}
, {
"Success", "You teleported to {0}!"
}
, {
"SuccessTarget", "{0} teleported to you!"
}
, {
"Cancelled", "Your teleport request to {0} was cancelled!"
}
, {
"CancelledTarget", "{0} teleport request was cancelled!"
}
, {
"TPCancelled", "Your teleport was cancelled!"
}
, {
"TPCancelledTarget", "{0} cancelled teleport!"
}
, {
"TPYouCancelledTarget", "You cancelled {0} teleport!"
}
, {
"TimedOut", "{0} did not answer your request in time!"
}
, {
"TimedOutTarget", "You did not answer {0}'s teleport request in time!"
}
, {
"TargetDisconnected", "{0} has disconnected, your teleport was cancelled!"
}
, {
"TPRCooldown", "Your teleport requests are currently on cooldown.You'll have to wait {0} to send your next teleport request."
}
, {
"TPRCooldownBypass", "Your teleport request was on cooldown.You chose to bypass that by paying {0} from your balance."
}
, {
"TPRCooldownBypassF", "Your teleport is currently on cooldown.You do not have sufficient funds - {0} - to bypass."
}
, {
"TPRCooldownBypassP", "You may choose to pay {0} to bypass this cooldown."
}
, {
"TPMoney", "{0} deducted from your account!"
}
, {
"TPNoMoney", "You do not have {0} in any account!"
}
, {
"TPRCooldownBypassP2", "Type /tpr {0}."
}
, {
"TPRCooldownBypassP2a", "Type /tpr NAME {0}."
}
, {
"TPRLimitReached", "You have reached the daily limit of {0} teleport requests today!"
}
, {
"TPRAmount", "You have {0} teleport requests left today!"
}
, {
"TPRTarget", "Your target is currently not available!"
}
, {
"TPDead", "You can't teleport while being dead!"
}
, {
"TPWounded", "You can't teleport while wounded!"
}
, {
"TPTooCold", "You're too cold to teleport!"
}
, {
"TPTooHot", "You're too hot to teleport!"
}
, {
"TPHostile", "Can't teleport to outpost or bandit when hostile!"
}
, {
"HostileTimer", "Teleport available in {0} minutes."
}
, {
"TPMounted", "You can't teleport while seated!"
}
, {
"TPBuildingBlocked", "You can't teleport while in a building blocked zone!"
}
, {
"TPAboveWater", "You can't teleport while above water!"
}
, {
"TPTargetBuildingBlocked", "You can't teleport in a building blocked zone!"
}
, {
"TPTargetInsideBlock", "You can't teleport into a foundation!"
}
, {
"TPSwimming", "You can't teleport while swimming!"
}
, {
"TPCargoShip", "You can't teleport from the cargo ship!"
}
, {
"TPOilRig", "You can't teleport from the oil rig!"
}
, {
"TPExcavator", "You can't teleport from the excavator!"
}
, {
"TPHotAirBalloon", "You can't teleport to or from a hot air balloon!"
}
, {
"TPLift", "You can't teleport while in an elevator or bucket lift!"
}
, {
"TPBucketLift", "You can't teleport while in a bucket lift!"
}
, {
"TPRegLift", "You can't teleport while in an elevator!"
}
, {
"TPSafeZone", "You can't teleport from a safezone!"
}
, {
"TPCrafting", "You can't teleport while crafting!"
}
, {
"TPBlockedItem", "You can't teleport while carrying: {0}!"
}
, {
"TooCloseToMon", "You can't teleport so close to the {0}!"
}
, {
"TooCloseToCave", "You can't teleport so close to a cave!"
}
, {
"HomeTooCloseToCave", "You can't set home so close to a cave!"
}
, {
"TownTP", "You teleported to town!"
}
, {
"TownTPNotSet", "Town is currently not set!"
}
, {
"TownTPDisabled", "Town is currently not enabled!"
}
, {
"TownTPLocation", "You have set the town location to {0}!"
}
, {
"TownTPStarted", "Teleporting to town in {0} seconds!"
}
, {
"TownTPCooldown", "Your teleport is currently on cooldown.You'll have to wait {0} for your next teleport."
}
, {
"TownTPCooldownBypass", "Your teleport request was on cooldown.You chose to bypass that by paying {0} from your balance."
}
, {
"TownTPCooldownBypassF", "Your teleport is currently on cooldown.You do not have sufficient funds - {0} - to bypass."
}
, {
"TownTPCooldownBypassP", "You may choose to pay {0} to bypass this cooldown."
}
, {
"TownTPCooldownBypassP2", "Type /town {0}."
}
, {
"TownTPLimitReached", "You have reached the daily limit of {0} teleports today!"
}
, {
"TownTPAmount", "You have {0} town teleports left today!"
}
, {
"OutpostTP", "You teleported to the outpost!"
}
, {
"OutpostTPNotSet", "Outpost is currently not set!"
}
, {
"OutpostTPDisabled", "Outpost is currently not enabled!"
}
, {
"OutpostTPLocation", "You have set the outpost location to {0}!"
}
, {
"OutpostTPStarted", "Teleporting to the outpost in {0} seconds!"
}
, {
"OutpostTPCooldown", "Your teleport is currently on cooldown.You'll have to wait {0} for your next teleport."
}
, {
"OutpostTPCooldownBypass", "Your teleport request was on cooldown.You chose to bypass that by paying {0} from your balance."
}
, {
"OutpostTPCooldownBypassF", "Your teleport is currently on cooldown.You do not have sufficient funds - {0} - to bypass."
}
, {
"OutpostTPCooldownBypassP", "You may choose to pay {0} to bypass this cooldown."
}
, {
"OutpostTPCooldownBypassP2", "Type /outpost {0}."
}
, {
"OutpostTPLimitReached", "You have reached the daily limit of {0} teleports today!"
}
, {
"OutpostTPAmount", "You have {0} outpost teleports left today!"
}
, {
"BanditTP", "You teleported to bandit town!"
}
, {
"BanditTPNotSet", "Bandit is currently not set!"
}
, {
"BanditTPDisabled", "Bandit is currently not enabled!"
}
, {
"BanditTPLocation", "You have set the bandit town location to {0}!"
}
, {
"BanditTPStarted", "Teleporting to bandit town in {0} seconds!"
}
, {
"BanditTPCooldown", "Your teleport is currently on cooldown.You'll have to wait {0} for your next teleport."
}
, {
"BanditTPCooldownBypass", "Your teleport request was on cooldown.You chose to bypass that by paying {0} from your balance."
}
, {
"BanditTPCooldownBypassF", "Your teleport is currently on cooldown.You do not have sufficient funds - {0} - to bypass."
}
, {
"BanditTPCooldownBypassP", "You may choose to pay {0} to bypass this cooldown."
}
, {
"BanditTPCooldownBypassP2", "Type /bandit {0}."
}
, {
"BanditTPLimitReached", "You have reached the daily limit of {0} teleports today!"
}
, {
"BanditTPAmount", "You have {0} bandit town teleports left today!"
}
, {
"Interrupted", "Your teleport was interrupted!"
}
, {
"InterruptedTarget", "{0}'s teleport was interrupted!"
}
, {
"Unlimited", "Unlimited"
}
, {
"TPInfoGeneral", string.Join(NewLine, new[] {
"Please specify the module you want to view the info of.", "The available modules are: ",
}
)
}
, {
"TPHelpGeneral", string.Join(NewLine, new[] {
"/tpinfo - Shows limits and cooldowns.", "Please specify the module you want to view the help of.", "The available modules are: ",
}
)
}
, {
"TPHelpadmintp", string.Join(NewLine, new[] {
"As an admin you have access to the following commands:", "/tp \"targetplayer\" - Teleports yourself to the target player.", "/tp \"player\" \"targetplayer\" - Teleports the player to the target player.", "/tp x y z - Teleports you to the set of coordinates.", "/tpl - Shows a list of saved locations.", "/tpl \"location name\" - Teleports you to a saved location.", "/tpsave \"location name\" - Saves your current position as the location name.", "/tpremove \"location name\" - Removes the location from your saved list.", "/tpb - Teleports you back to the place where you were before teleporting.", "/home radius \"radius\" - Find all homes in radius.", "/home delete \"player name|id\" \"home name\" - Remove a home from a player.", "/home tp \"player name|id\" \"name\" - Teleports you to the home location with the name 'name' from the player.", "/home homes \"player name|id\" - Shows you a list of all homes from the player."
}
)
}
, {
"TPHelphome", string.Join(NewLine, new[] {
"With the following commands you can set your home location to teleport back to:", "/home add \"name\" - Saves your current position as the location name.", "/home list - Shows you a list of all the locations you have saved.", "/home remove \"name\" - Removes the location of your saved homes.", "/home \"name\" - Teleports you to the home location."
}
)
}
, {
"TPHelptpr", string.Join(NewLine, new[] {
"With these commands you can request to be teleported to a player or accept someone else's request:", "/tpr \"player name\" - Sends a teleport request to the player.", "/tpa - Accepts an incoming teleport request.", "/tpc - Cancel teleport or request."
}
)
}
, {
"TPSettingsGeneral", string.Join(NewLine, new[] {
"Please specify the module you want to view the settings of.", "The available modules are:",
}
)
}
, {
"TPSettingshome", string.Join(NewLine, new[] {
"Home System has the current settings enabled:", "Time between teleports: {0}", "Daily amount of teleports: {1}", "Amount of saved Home locations: {2}"
}
)
}
, {
"TPSettingstpr", string.Join(NewLine, new[] {
"TPR System has the current settings enabled:", "Time between teleports: {0}", "Daily amount of teleports: {1}"
}
)
}
, {
"TPSettingstown", string.Join(NewLine, new[] {
"Town System has the current settings enabled:", "Time between teleports: {0}", "Daily amount of teleports: {1}"
}
)
}
, {
"PlayerNotFound", "The specified player couldn't be found please try again!"
}
, {
"MultiplePlayers", "Found multiple players: {0}"
}
, {
"CantTeleportToSelf", "You can't teleport to yourself!"
}
, {
"CantTeleportPlayerToSelf", "You can't teleport a player to himself!"
}
, {
"TeleportPending", "You can't initiate another teleport while you have a teleport pending!"
}
, {
"TeleportPendingTarget", "You can't request a teleport to someone who's about to teleport!"
}
, {
"LocationExists", "A location with this name already exists at {0}!"
}
, {
"LocationExistsNearby", "A location with the name {0} already exists near this position!"
}
, {
"LocationNotFound", "Couldn't find a location with that name!"
}
, {
"NoPreviousLocationSaved", "No previous location saved!"
}
, {
"HomeExists", "You have already saved a home location by this name!"
}
, {
"HomeExistsNearby", "A home location with the name {0} already exists near this position!"
}
, {
// ... [Code preview truncated due to length. Full source in attached file] ...