Skip to content

Commit

Permalink
improve and remove unncessary translations
Browse files Browse the repository at this point in the history
  • Loading branch information
RestoreMonarchy committed Jan 9, 2021
1 parent e7bdbeb commit 65f484a
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions MoreHomesPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@ protected override void Load()
Logger.Log("Brought to you by RestoreMonarchy.com", ConsoleColor.Yellow);
}

protected override void Unload()
{
HarmonyInstance?.UnpatchAll(HarmonyInstanceId);
HarmonyInstance = null;

Destroy(DataService);

R.Plugins.OnPluginsLoaded -= OnPluginsLoaded;

Logger.Log($"{Name} has been unloaded!", ConsoleColor.Yellow);
}

private void OnPluginsLoaded()
{
IRocketPlugin plugin = R.Plugins.GetPlugin("Teleportation");
Expand All @@ -59,38 +71,26 @@ private void OnPluginsLoaded()
{ "HomeCooldown", "You have to wait {0} to use this command again" },
{ "HomeDelayWarn", "You will be teleported to your home in {0} seconds" },
{ "MaxHomesWarn", "You cannot have more homes" },
{ "BedDestroyed", "Your home got destroyed! Teleportation canceled" },
{ "BedDestroyed", "Your home got destroyed or unclaimed! Teleportation canceled" },
{ "WhileDriving", "You cannot teleport while driving" },
{ "NoHome", "You don't have any home to teleport or name doesn't match any" },
{ "HomeSuccess", "Successfully teleported You to your {0} home!" },
{ "HomeList", "Your homes [{0}/{1}]: " },
{ "NoHomes", "You don't have any home" },
{ "DestroyHomeFormat", "Format: /destroyhome <name>" },
{ "HomeNotFound", "No home match {0} name" },
{ "DestroyHomeSuccess", "Successfully destroyed and unclaimed your {0} home!" },
{ "DestroyHomeSuccess", "Successfully destroyed your home {0}!" },
{ "RenameHomeFormat", "Format: /renamehome <name> <rename>" },
{ "HomeAlreadyExists", "You already have a home named {0}" },
{ "RenameHomeSuccess", "Successfully renamed home {0} to {1}!" },
{ "WhileRaid", "You can't teleport while in raiding" },
{ "WhileCombat", "You can't teleport while in combat" },
{ "RestoreHomesSuccess", "Successfully restored {0} homes!" },
{ "RemoveHome", "Your {0} home got removed!" },
{ "RemoveHomeFail", "Failed to remove your home" },
{ "RenameHomeFail", "You already have home named {0}" },
{ "RenameHomeSuccess", "Successfully renamed home {0} to {1}!" },
{ "HomeClaimed", "Your new claimed home name is {0}" },
{ "HomeTeleportationFailed", "Failed to teleport you to {0} home" },
{ "HomeDestroyed", "Your home {0} got destroyed!" }
};

protected override void Unload()
{
HarmonyInstance?.UnpatchAll(HarmonyInstanceId);
HarmonyInstance = null;

R.Plugins.OnPluginsLoaded -= OnPluginsLoaded;

Logger.Log($"{Name} has been unloaded!", ConsoleColor.Yellow);
}
{ "HomeDestroyed", "Your home {0} got destroyed or you salvaged it!" }
};
}
}

0 comments on commit 65f484a

Please sign in to comment.