Added command to change locked mouse speed

This commit is contained in:
Norbi Peti 2016-04-07 10:04:40 +02:00
parent d3b7adf2ae
commit 995e72c9f6

View file

@ -172,6 +172,15 @@ public class Commands implements CommandExecutor
MouseLockedPlayerListener.LockedPlayers.remove(e.getPlayer());
sender.sendMessage("§bMouse unlocked.");
}
} else if (args[1].equalsIgnoreCase("mspeed"))
{
if(args.length<3)
{
sender.sendMessage("§cUsage: /computer input mspeed <integer>");
return;
}
MouseLockerPlayerListener.LockedSpeed=Integer.parseInt(args[2]);
sender.sendMessage("§aMouse speed set to "+MouseLockerPlayerListener.LockedSpeed);
}
break;
}