mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2025-08-16 00:25:45 +00:00
Fix RTP on death on custom worlds and add it to debug print (#247)
This commit is contained in:
parent
3cf85f2ce6
commit
1f16f943e8
@ -45,6 +45,12 @@ public class WorldCustom implements RTPWorld, RTPWorld_Defaulted {
|
||||
BetterRTP.debug("- UseWorldBorder: " + this.useWorldborder);
|
||||
}
|
||||
}
|
||||
if (test.get("RTPOnDeath") != null) {
|
||||
if (test.get("RTPOnDeath").getClass() == Boolean.class) {
|
||||
RTPOnDeath = Boolean.parseBoolean(test.get("RTPOnDeath").toString());
|
||||
BetterRTP.debug("- RTPOnDeath: " + this.RTPOnDeath);
|
||||
}
|
||||
}
|
||||
if (test.get("CenterX") != null) {
|
||||
if (test.get("CenterX").getClass() == Integer.class) {
|
||||
centerX = Integer.parseInt((test.get("CenterX")).toString());
|
||||
@ -203,7 +209,8 @@ public class WorldCustom implements RTPWorld, RTPWorld_Defaulted {
|
||||
return cooldown;
|
||||
}
|
||||
|
||||
@Override public boolean getRTPOnDeath() {
|
||||
@Override
|
||||
public boolean getRTPOnDeath() {
|
||||
return RTPOnDeath;
|
||||
}
|
||||
|
||||
@ -268,7 +275,8 @@ public class WorldCustom implements RTPWorld, RTPWorld_Defaulted {
|
||||
this.cooldown = value;
|
||||
}
|
||||
|
||||
@Override public void setRTPOnDeath(boolean bool) {
|
||||
RTPOnDeath = bool;
|
||||
@Override
|
||||
public void setRTPOnDeath(boolean value) {
|
||||
this.RTPOnDeath = value;
|
||||
}
|
||||
}
|
||||
|
@ -76,6 +76,7 @@ public class WorldDefault implements RTPWorld {
|
||||
if (BetterRTP.getInstance().getSettings().isDebug()) {
|
||||
Logger log = BetterRTP.getInstance().getLogger();
|
||||
log.info("- UseWorldBorder: " + this.useWorldborder);
|
||||
log.info("- RTPOnDeath: " + this.RTPOnDeath);
|
||||
log.info("- CenterX: " + this.centerX);
|
||||
log.info("- CenterZ: " + this.centerZ);
|
||||
log.info("- MaxRadius: " + this.maxRad);
|
||||
@ -151,7 +152,8 @@ public class WorldDefault implements RTPWorld {
|
||||
return BetterRTP.getInstance().getCooldowns().getDefaultCooldownTime();
|
||||
}
|
||||
|
||||
@Override public boolean getRTPOnDeath() {
|
||||
@Override
|
||||
public boolean getRTPOnDeath() {
|
||||
return RTPOnDeath;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user