Merge pull request #43 from Venom983/master

Texture now only accepts URLs ending in .png
This commit is contained in:
Hetal728 2015-09-20 22:52:38 -04:00
commit c706d56a58

View File

@ -41,6 +41,11 @@ namespace MCGalaxy.Commands
p.SendMessage("Please use http:// or https:// in front of your URL"); p.SendMessage("Please use http:// or https:// in front of your URL");
return; return;
} }
if (!pars[1].EndsWith(".png"))
{
p.SendMessage("Please make sure your URL ends in .png");
return;
}
if (pars[0].ToLower() == "global") if (pars[0].ToLower() == "global")
{ {
Server.defaultTextureUrl = pars[1]; Server.defaultTextureUrl = pars[1];