Towny API

Status
This thread has been locked.

felldownstairs

Gypsy Boy | Java Developer
Supreme
Feedback score
4
Posts
783
Reactions
144
Resources
0
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

felldownstairs

Gypsy Boy | Java Developer
Supreme
Feedback score
4
Posts
783
Reactions
144
Resources
0
Why are you creating a new town? There has to be some way to grab an existing town from memory
Not sure on all the exactly methods, but i think that just allows you to get certain info from that town, like the players in it, its claims. ill have a look at something else to see if that works.
 

felldownstairs

Gypsy Boy | Java Developer
Supreme
Feedback score
4
Posts
783
Reactions
144
Resources
0
TownUniverse.getTown(String name)

I dont know how you get the townuniverse object but im looking
Aye yes i found a method on some website which showed me how to get the town so that's fixed, its just, i dont know how that works with the https://gyazo.com/be6652a99fea13c2c437bce5d69375cd as i cant call a getTown method to get the block they are in if you get what i mean.
 

felldownstairs

Gypsy Boy | Java Developer
Supreme
Feedback score
4
Posts
783
Reactions
144
Resources
0
Something along the lines of this I believe.

Code:
Towny towny = pluginManager.getPlugin("Towny");

TownyUniverse uni = towny.getTownyUniverse();

Town town = uni.getTown("itsjhalt");
yea thanks i think i got something like that, its just the part how i dont understand how that would work with https://gyazo.com/be6652a99fea13c2c437bce5d69375cd[DOUBLEPOST=1534799648][/DOUBLEPOST]
Check latest reply, edited
Hmm, i managed to fix part of it, if it helps, whenever a player is in a claim it doesnt shoot off the millions of errors, but when they are outside a claim, it does. Also, when i am banned from a claim, and go to walk in there, it teleports me back, but continues does not allow me to move at all.
 
Last edited:
Status
This thread has been locked.
Top