MrNaikito / towny

Automatically exported from code.google.com/p/towny
0 stars 1 forks source link

/ta unclaim [radius] broken #1420

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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().get
Name(),Coord.parseCoord(player)), split);

error is in towny/utils/AreaSelectionUtil.java

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

Original issue reported on code.google.com by HaxtorMo...@gmail.com on 13 Nov 2012 at 5:26

GoogleCodeExporter 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.

Original comment by Elg...@palmergames.com on 16 Nov 2012 at 8:37

GoogleCodeExporter commented 9 years ago
Fixed.

Original comment by Elg...@palmergames.com on 16 Nov 2012 at 4:47