mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-18 03:39:04 -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");
|
||||
return;
|
||||
}
|
||||
if (!pars[1].EndsWith(".png"))
|
||||
{
|
||||
p.SendMessage("Please make sure your URL ends in .png");
|
||||
return;
|
||||
}
|
||||
if (pars[0].ToLower() == "global")
|
||||
{
|
||||
Server.defaultTextureUrl = pars[1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user