From cd22e4360e61f389fff34c3dac2c63f527371c3d Mon Sep 17 00:00:00 2001 From: Venom983 Date: Sun, 20 Sep 2015 22:38:37 -0400 Subject: [PATCH] Texture now only accepts URLs ending in .png --- Commands/CmdTexture.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Commands/CmdTexture.cs b/Commands/CmdTexture.cs index 59aa53e94..8c37c3a4b 100644 --- a/Commands/CmdTexture.cs +++ b/Commands/CmdTexture.cs @@ -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];