public static void Command(CommandSender sender)
	{
		if(!(sender instanceof Player))
			me.Vinceguy1.ChangeGameMode.Functions.Message.Function(me.Vinceguy1.ChangeGameMode.ConfigClass.config.get("Messages.Errors.In-game Player").toString(), sender, null, null, true, false, false, null);
		else
		{
			Player player = (Player) sender;
			if(sender.hasPermission("gm.toggle") || sender.hasPermission("essentials.gm"))
			{
				if(player.getGameMode() == GameMode.SURVIVAL)
				{
					player.setGameMode(GameMode.CREATIVE);
					me.Vinceguy1.ChangeGameMode.Functions.Files.WriteGameMode(player, player.getWorld().getName(), me.Vinceguy1.ChangeGameMode.ConfigClass.config.getBoolean("Settings.Multi World GameModes"));
					me.Vinceguy1.ChangeGameMode.Functions.Message.Function(me.Vinceguy1.ChangeGameMode.ConfigClass.config.get("Messages.General.Your GameMode has been changed").toString(), sender, player, player, true, false, false, null);
				}
				else if(player.getGameMode() == GameMode.CREATIVE)
				{
					if(me.Vinceguy1.ChangeGameMode.ConfigClass.config.getBoolean("Settings.Adventure Mode Enabled"))
					{
						player.setGameMode(GameMode.ADVENTURE);
						me.Vinceguy1.ChangeGameMode.Functions.Files.WriteGameMode(player, player.getWorld().getName(), me.Vinceguy1.ChangeGameMode.ConfigClass.config.getBoolean("Settings.Multi World GameModes"));
						me.Vinceguy1.ChangeGameMode.Functions.Message.Function(me.Vinceguy1.ChangeGameMode.ConfigClass.config.get("Messages.General.Your GameMode has been changed").toString(), sender, player, player, true, false, false, null);
					}
					else
					{
						player.setGameMode(GameMode.SURVIVAL);
						me.Vinceguy1.ChangeGameMode.Functions.Files.WriteGameMode(player, player.getWorld().getName(), me.Vinceguy1.ChangeGameMode.ConfigClass.config.getBoolean("Settings.Multi World GameModes"));
						me.Vinceguy1.ChangeGameMode.Functions.Message.Function(me.Vinceguy1.ChangeGameMode.ConfigClass.config.get("Messages.General.Your GameMode has been changed").toString(), sender, player, player, true, false, false, null);
					}
					
				}
				else if(player.getGameMode() == GameMode.ADVENTURE)
				{
					player.setGameMode(GameMode.SURVIVAL);
					me.Vinceguy1.ChangeGameMode.Functions.Files.WriteGameMode(player, player.getWorld().getName(), me.Vinceguy1.ChangeGameMode.ConfigClass.config.getBoolean("Settings.Multi World GameModes"));
					me.Vinceguy1.ChangeGameMode.Functions.Message.Function(me.Vinceguy1.ChangeGameMode.ConfigClass.config.get("Messages.General.Your GameMode has been changed").toString(), sender, player, player, true, false, false, null);
				}
			}
			else
				me.Vinceguy1.ChangeGameMode.Functions.Message.Function(me.Vinceguy1.ChangeGameMode.ConfigClass.config.get("Messages.Errors.No Permission").toString(), sender, player, player, true, false, false, null);
		}
	}