File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
src/main/java/me/SuperRonanCraft/BetterRTP/references/rtpinfo/worlds Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,12 @@ public WorldCustom(World world) {
4545 BetterRTP .debug ("- UseWorldBorder: " + this .useWorldborder );
4646 }
4747 }
48+ if (test .get ("RTPOnDeath" ) != null ) {
49+ if (test .get ("RTPOnDeath" ).getClass () == Boolean .class ) {
50+ RTPOnDeath = Boolean .parseBoolean (test .get ("RTPOnDeath" ).toString ());
51+ BetterRTP .debug ("- RTPOnDeath: " + this .RTPOnDeath );
52+ }
53+ }
4854 if (test .get ("CenterX" ) != null ) {
4955 if (test .get ("CenterX" ).getClass () == Integer .class ) {
5056 centerX = Integer .parseInt ((test .get ("CenterX" )).toString ());
@@ -203,7 +209,8 @@ public long getCooldown() {
203209 return cooldown ;
204210 }
205211
206- @ Override public boolean getRTPOnDeath () {
212+ @ Override
213+ public boolean getRTPOnDeath () {
207214 return RTPOnDeath ;
208215 }
209216
@@ -268,7 +275,8 @@ public void setCooldown(long value) {
268275 this .cooldown = value ;
269276 }
270277
271- @ Override public void setRTPOnDeath (boolean bool ) {
272- RTPOnDeath = bool ;
278+ @ Override
279+ public void setRTPOnDeath (boolean value ) {
280+ this .RTPOnDeath = value ;
273281 }
274282}
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ public void load() {
7676 if (BetterRTP .getInstance ().getSettings ().isDebug ()) {
7777 Logger log = BetterRTP .getInstance ().getLogger ();
7878 log .info ("- UseWorldBorder: " + this .useWorldborder );
79+ log .info ("- RTPOnDeath: " + this .RTPOnDeath );
7980 log .info ("- CenterX: " + this .centerX );
8081 log .info ("- CenterZ: " + this .centerZ );
8182 log .info ("- MaxRadius: " + this .maxRad );
@@ -151,7 +152,8 @@ public long getCooldown() {
151152 return BetterRTP .getInstance ().getCooldowns ().getDefaultCooldownTime ();
152153 }
153154
154- @ Override public boolean getRTPOnDeath () {
155+ @ Override
156+ public boolean getRTPOnDeath () {
155157 return RTPOnDeath ;
156158 }
157159}
You can’t perform that action at this time.
0 commit comments