Skip to content

Commit 65f484a

Browse files
improve and remove unncessary translations
1 parent e7bdbeb commit 65f484a

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

MoreHomesPlugin.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,18 @@ protected override void Load()
4545
Logger.Log("Brought to you by RestoreMonarchy.com", ConsoleColor.Yellow);
4646
}
4747

48+
protected override void Unload()
49+
{
50+
HarmonyInstance?.UnpatchAll(HarmonyInstanceId);
51+
HarmonyInstance = null;
52+
53+
Destroy(DataService);
54+
55+
R.Plugins.OnPluginsLoaded -= OnPluginsLoaded;
56+
57+
Logger.Log($"{Name} has been unloaded!", ConsoleColor.Yellow);
58+
}
59+
4860
private void OnPluginsLoaded()
4961
{
5062
IRocketPlugin plugin = R.Plugins.GetPlugin("Teleportation");
@@ -59,38 +71,26 @@ private void OnPluginsLoaded()
5971
{ "HomeCooldown", "You have to wait {0} to use this command again" },
6072
{ "HomeDelayWarn", "You will be teleported to your home in {0} seconds" },
6173
{ "MaxHomesWarn", "You cannot have more homes" },
62-
{ "BedDestroyed", "Your home got destroyed! Teleportation canceled" },
74+
{ "BedDestroyed", "Your home got destroyed or unclaimed! Teleportation canceled" },
6375
{ "WhileDriving", "You cannot teleport while driving" },
6476
{ "NoHome", "You don't have any home to teleport or name doesn't match any" },
6577
{ "HomeSuccess", "Successfully teleported You to your {0} home!" },
6678
{ "HomeList", "Your homes [{0}/{1}]: " },
6779
{ "NoHomes", "You don't have any home" },
6880
{ "DestroyHomeFormat", "Format: /destroyhome <name>" },
6981
{ "HomeNotFound", "No home match {0} name" },
70-
{ "DestroyHomeSuccess", "Successfully destroyed and unclaimed your {0} home!" },
82+
{ "DestroyHomeSuccess", "Successfully destroyed your home {0}!" },
7183
{ "RenameHomeFormat", "Format: /renamehome <name> <rename>" },
7284
{ "HomeAlreadyExists", "You already have a home named {0}" },
7385
{ "RenameHomeSuccess", "Successfully renamed home {0} to {1}!" },
7486
{ "WhileRaid", "You can't teleport while in raiding" },
7587
{ "WhileCombat", "You can't teleport while in combat" },
7688
{ "RestoreHomesSuccess", "Successfully restored {0} homes!" },
7789
{ "RemoveHome", "Your {0} home got removed!" },
78-
{ "RemoveHomeFail", "Failed to remove your home" },
79-
{ "RenameHomeFail", "You already have home named {0}" },
8090
{ "RenameHomeSuccess", "Successfully renamed home {0} to {1}!" },
8191
{ "HomeClaimed", "Your new claimed home name is {0}" },
8292
{ "HomeTeleportationFailed", "Failed to teleport you to {0} home" },
83-
{ "HomeDestroyed", "Your home {0} got destroyed!" }
84-
};
85-
86-
protected override void Unload()
87-
{
88-
HarmonyInstance?.UnpatchAll(HarmonyInstanceId);
89-
HarmonyInstance = null;
90-
91-
R.Plugins.OnPluginsLoaded -= OnPluginsLoaded;
92-
93-
Logger.Log($"{Name} has been unloaded!", ConsoleColor.Yellow);
94-
}
93+
{ "HomeDestroyed", "Your home {0} got destroyed or you salvaged it!" }
94+
};
9595
}
9696
}

0 commit comments

Comments
 (0)