mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-19 12:18:03 -04:00
Merge pull request #43 from Venom983/master
Texture now only accepts URLs ending in .png
This commit is contained in:
commit
c706d56a58
@ -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];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user