Skip to content
Permalink
Browse files

Times now ACTUALLY in seconds

  • Loading branch information...
mcmonkey4eva committed Sep 5, 2017
1 parent 9ac36a9 commit 8b63855ee8b29a6696e958fd4f95ff2cb11bd8e2
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/main/java/org/mcmonkey/sentinel/SentinelPlugin.java
@@ -603,7 +603,7 @@ else if (arg0.equals("health") && sender.hasPermission("sentinel.health") && arg
else if (arg0.equals("attackrate") && sender.hasPermission("sentinel.attackrate") && args.length > 1) {
try {
double da = Double.valueOf(args[1]);
int d = (int)(da * 0.05);
int d = (int)(da * 20);
if (d >= tickRate && d <= SentinelTrait.attackRateMax) {
if (args.length > 2 && args[2].contains("ranged")) {
sentinel.attackRateRanged = d;
@@ -626,7 +626,7 @@ else if (arg0.equals("attackrate") && sender.hasPermission("sentinel.attackrate"
else if (arg0.equals("healrate") && sender.hasPermission("sentinel.healrate") && args.length > 1) {
try {
double da = Double.valueOf(args[1]);
int d = (int)(da * 0.05);
int d = (int)(da * 20);
if ((d >= tickRate && d <= SentinelTrait.healRateMax) || d == 0) {
sentinel.healRate = d;
sender.sendMessage(prefixGood + "Heal rate set!");
@@ -644,7 +644,7 @@ else if (arg0.equals("targettime") && sender.hasPermission("sentinel.targettime"
try {
double d = Double.valueOf(args[1]);
if (d >= 0) {
sentinel.enemyTargetTime = (int)(d * 0.05);
sentinel.enemyTargetTime = (int)(d * 20);
sender.sendMessage(prefixGood + "Target time set!");
}
else {
@@ -659,7 +659,7 @@ else if (arg0.equals("targettime") && sender.hasPermission("sentinel.targettime"
else if (arg0.equals("respawntime") && sender.hasPermission("sentinel.respawntime") && args.length > 1) {
try {
double d = Double.valueOf(args[1]);
sentinel.respawnTime = (long)(d * 0.05);
sentinel.respawnTime = (long)(d * 20);
sender.sendMessage(prefixGood + "Respawn time set!");
}
catch (NumberFormatException ex) {

0 comments on commit 8b63855

Please sign in to comment.
You can’t perform that action at this time.