TownyAdvanced / Towny

Towny Advanced Minecraft plugin for Bukkit/Spigot.
https://townyadvanced.github.io
Other
526 stars 352 forks source link

/ta unclaim [radius] broken #1446

Closed LlmDl closed 9 years ago

LlmDl commented 9 years ago

Originally reported on Google Code with ID 1420

simply /ta unclaim 20 or any # and you get an error in console

/ta unclaim 2000
[SEVERE] Exception in thread "Thread-3996"
[SEVERE] java.lang.NullPointerException
[SEVERE]       at com.palmergames.bukkit.towny.tasks.TownClaim.run(Unknown Source)

NOTE: This issue has been around for quite some time now, before minecraft 1.2.5

What is the expected output? :
un-claiming plots in the radius around you

What do you see instead? :
this error in the console...
[SEVERE] Exception in thread "Thread-3996"
[SEVERE] java.lang.NullPointerException
[SEVERE]       at com.palmergames.bukkit.towny.tasks.TownClaim.run(Unknown Source)

What is your Towny version number? :
latest release build

What is your TownyChat version number? :
I dont use tonwy chat

What is your Bukkit version number? :
latest dev build of bukkit 
craftbukkit-1.4.2-R0.3-20121112.060235

NOTE: This issue has been around for quite some time now, before minecraft 1.2.5 and
I have seen this on several multiple servers since then with this command never working.
Am I the first to submit this bug? Does no one submit bugs thinking they will be submitted
by others?

I traced this issue down to being possibly in towny/tasks/TownClaim.java in the repo
selection 
=AreaSelectionUtil.selectWorldCoordArea(null,newWorldCoord(player.getWorld().getName(),Coord.parseCoord(player)),
split);

error is in towny/utils/AreaSelectionUtil.java

the other possibility is in 
towny/tasks/TownClaim.java
line 88 ish

Reported by HaxtorMoogle on 2012-11-13 05:26:31

LlmDl commented 9 years ago
I ran '/town unclaim 20' in a town I was a member of and got no error.
I ran the same command stood in the wilderness and got no error.

Reported by ElgarL@palmergames.com on 2012-11-16 08:37:15

LlmDl commented 9 years ago
Fixed.

Reported by ElgarL@palmergames.com on 2012-11-16 16:47:21