Pass .dll to the plugin loader. Fixes #121

This commit is contained in:
UclCommander 2016-04-04 15:11:20 -05:00
parent 86b3f3d374
commit 15d9aab358

View File

@ -28,7 +28,7 @@ namespace MCGalaxy.Commands
public override void Use(Player p, string message) public override void Use(Player p, string message)
{ {
if (File.Exists("plugins/" + message + ".dll")) if (File.Exists("plugins/" + message + ".dll"))
Plugin.Load(message, false); Plugin.Load(message + ".dll", false);
else else
Player.SendMessage(p, "Plugin not found!"); Player.SendMessage(p, "Plugin not found!");
} }