MrNaikito / towny

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

Spawn lost on reboot #97

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set a town spawn
2. Reboot server
3. gives error town spawn has not been set

What is the expected output? What do you see instead?

What is your towny build?
Tested on build 73.1 and Dev Build 73.2
What is your bukkit build?
1000
What operating system?
Fedora 14
I am getting no errors on server reboots.

Please use pastebin.com to attach links to relevant files which could
include your towny config.yml, your permissions file, broken town files
that prevent towny from loading on startup.

Original issue reported on code.google.com by Milso.D...@gmail.com on 25 Jul 2011 at 8:58

GoogleCodeExporter commented 8 years ago
Yes, still happens for me too.  Submitted this bug already as well but the 
defect appears to have been closed without resolution.

I also tried dev build 73.2 and bukkit 1000

Original comment by p...@clanbbf.com on 26 Jul 2011 at 2:58

GoogleCodeExporter commented 8 years ago
Nothing we try can replicate this error. The only thing we have noted is the 
pitch and yaw was not being saved.

Your description of how to replicate it is wrong or there is no bug.

Original comment by Elg...@palmergames.com on 26 Jul 2011 at 3:10

GoogleCodeExporter commented 8 years ago
Maybe a plugin compatible issue

Here are the plugins I'm running.
BlockHat.jar
BukkitContrib.jar
Cenotaph.jar
ChestShop.jar
ColoredSigns.jar
CookieMonster.jar
CustomCrafting.jar
FullChest.jar
HeroChat.jar
HeroSpawn.jar
Heroes.jar
HeroicDeath.jar
Ioncannon V1.3.1.jar
LWC.jar
LagMeter.jar
MineMail.jar
Minequery.jar
ModTRS.jar
Permissions.jar
PermissionsSql.jar
Portcullis.jar
Questioner.jar
RegionalWeather.jar
Residence.jar
SelfPlanting.jar
SetRank.jar
Statistician.jar
Towny.jar
War.jar
dynmap.jar
iConomy.jar
ibicf.jar

I will try tonight to turn every thing else off and test

Original comment by Milso.D...@gmail.com on 26 Jul 2011 at 10:19

GoogleCodeExporter commented 8 years ago
After turning off mods i still get same issue.
Where does it save "pitch and yaw" so i can check for it

Original comment by Milso.D...@gmail.com on 28 Jul 2011 at 6:01

GoogleCodeExporter commented 8 years ago
residents=XXXXXXXXXXXXXXXXXXXXX
mayor=XXXXXXXXXX
assistants=
townBoard=Welcome resident of Prospect
protectionStatus=residentSwitch,residentItemUse
bonusBlocks=0
taxes=10
plotPrice=50
plotTax=10
hasUpkeep=true
pvp=false
mobs=false
public=true
explosion=false
fire=false
taxpercent=false
townBlocks=Terra:-64,186;-63,186;-62,186;-64,187;-64,188;-63,187;-62,187;-62,188
;-63,188;-63,185;-64,185;-65,185;-65,186;-65,187;-66,186;-65,188;-66,188;-66,187
;-65,184;-66,184;-66,185;-64,184;-63,189;-62,189;-62,190;-62,185;-63,184;-62,184
;-64,189;-65,189;-66,189;-67,189;-67,188;-67,187;-67,186;-67,185;-67,184;-67,183
;-66,183;-65,183;-64,183;-63,183;-62,183;-61,183;-61,184;-61,185;-61,186;-61,187
;-61,188;-61,189;-61,190;-63,190;-64,190;-65,190,50;-66,190,50;-67,190,50;-68,18
5;-68,184;-68,183;-60,183;-60,184;-60,185;-60,186;-59,186;-59,185;-58,185;-58,18
6;-60,187;-59,187;-58,187;-60,188;-59,188;-58,188;-60,189;-59,189;-58,189;-68,18
6;-70,184;-69,184;-70,185;-69,185;-70,186;-69,186;-70,187;-69,187;-68,187;-70,18
8;-69,188;-68,188;-64,191;-64,192;-64,193;-64,194;-64,195;-64,196;|
homeBlock=Terra,-64,186

Original comment by Milso.D...@gmail.com on 28 Jul 2011 at 6:07

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set a town spawn
2. Reboot server
3. enter /town spawn
4. gives error town spawn has not been set

Original comment by Milso.D...@gmail.com on 28 Jul 2011 at 6:34

GoogleCodeExporter commented 8 years ago
Your town file is missing the Spawn entry. I have repeated the procedure you 
detail multiple times and not once has a spawn been lost. Looking at the code 
and it appears to be impossible to loose.
There has to be something to the procedure you are missing. like you tried to 
set the spawn out of the homeblock?

residents=ElgarL
mayor=ElgarL
assistants=
townBoard=/town set board [msg]
protectionStatus=residentBuild,residentDestroy,residentSwitch,residentItemUse
bonusBlocks=0
taxes=0
plotPrice=0
plotTax=0
hasUpkeep=true
pvp=false
mobs=false
public=true
explosion=false
fire=false
taxpercent=false
townBlocks=Beta:1,36;|
homeBlock=Beta,1,36
spawn=Beta,20.530908809722,89.0,580.2052797463647,23.400023,-224.24997

Original comment by Elg...@palmergames.com on 29 Jul 2011 at 7:12

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Ok i checked when i do /town set spawn it adds this to the file.
but when i reboot it is then gone.
And this goes for every town i have.

Original comment by Milso.D...@gmail.com on 29 Jul 2011 at 2:41

GoogleCodeExporter commented 8 years ago
On a side note if i check the deleted folder all of those have spawn points

Original comment by Milso.D...@gmail.com on 29 Jul 2011 at 2:43

GoogleCodeExporter commented 8 years ago
I can not replicate this no matter what I try. It has to be something specific 
to your setup or you are missing some step when you describe the issue.

Original comment by Elg...@palmergames.com on 5 Aug 2011 at 12:45

GoogleCodeExporter commented 8 years ago
I have the same problem! please help this mod could be enjoyable if there wasnt 
this error!

Original comment by lewi...@me.com on 5 Aug 2011 at 3:21

GoogleCodeExporter commented 8 years ago
Issue 133 has been merged into this issue.

Original comment by Elg...@palmergames.com on 5 Aug 2011 at 9:23

GoogleCodeExporter commented 8 years ago
the only thing i did not list that i can find is I'm using multicraft on the 
server.

If you would like i can get you access to the server if that would help.

there is a scheduled shutdown at 5am and once the server comes back up its lost.
Also if do an in-game shutdown I also lose the spawns

:After shutting down
08.08 05:00:02 [Multicraft] Minecraft stopped
08.08 05:00:01 [Multicraft] Minecraft shut down
08.08 05:00:00 [Server] INFO Stopping server
08.08 05:00:00 [Server] INFO Saving chunks
08.08 05:00:00 [Server] INFO [Statistician] Shutting down...
08.08 05:00:00 [Server] INFO [Permissions] SQL Interface disabled!
08.08 05:00:00 [Server] INFO [ChestShop] Economy plugin disabled!
08.08 05:00:00 [Server] INFO [MineMail] un-hooked from iConomy.
08.08 05:00:00 [Server] INFO [iConomy] Plugin disabled.
08.08 05:00:00 [Server] INFO [Cenotaph] LWC plugin lost.
08.08 05:00:00 [Server] INFO LWC: Freeing SQLite
08.08 05:00:00 [Server] INFO [Waypoint] Disabled version 1.5.0
08.08 05:00:00 [Server] INFO [Towny] Version: 0.73.2 - Mod Disabled
08.08 05:00:00 [Server] INFO [Towny] saveWorldList
08.08 05:00:00 [Server] INFO FalseBookExtra v0.87alpha DEV#3 by GeMo disabled
08.08 05:00:00 [Server] INFO [Cenotaph] Permissions plugin lost.
08.08 05:00:00 [Server] INFO [Permissions] (Yeti) disabled successfully.
08.08 05:00:00 [Server] INFO [Permissions] (Yeti) saved all data.
08.08 05:00:00 [Server] INFO [Permissions] (Yeti) saving data...
08.08 05:00:00 [Server] INFO [Questioner] v0.4 - Disabled
08.08 05:00:00 [Server] INFO AntiCreeper v2.0 (with AntiTNT) - STOPPED
08.08 05:00:00 [Server] INFO Disabling PickBoat
08.08 05:00:00 [Server] INFO FalseBookBlock v0.87alpha DEV#3 by GeMo disabled
08.08 05:00:00 [Server] INFO [HeroChat] HeroChat version 4.10.3 disabled.
08.08 05:00:00 [Server] INFO [ChestShop] version 3.00 BETA 9 shutting down!
08.08 05:00:00 [Server] INFO Stopping Minequery server
08.08 05:00:00 [Server] INFO Votifier disabled.
08.08 05:00:00 [Server] INFO mcMMO was disabled.
08.08 05:00:00 [Server] INFO Motd Disabled
08.08 05:00:00 [Server] INFO SelfPlanting v1.3 disabled.
08.08 05:00:00 [Server] INFO SelfPlanting: disabling...
08.08 05:00:00 [Server] INFO [FalseBook Core] FalseBookCore v0.87alpha DEV#3 by 
GeMo disabled!
08.08 05:00:00 [Server] INFO [SetRank] Done!
08.08 05:00:00 [Server] INFO [SetRank] Shutting down...
08.08 05:00:00 [Server] INFO Unloading ColoredSigns
08.08 05:00:00 [Server] INFO [HeroicDeath] 1.8.1.156 disabled.
08.08 05:00:00 [Server] INFO [MineMail] v 1.3is disabled
08.08 05:00:00 [Server] INFO Stopping server
08.08 05:00:00 [Server] INFO Stopping the server..
08.08 05:00:00 [Server] INFO Save complete.
08.08 05:00:00 [Server] INFO Forcing save..
08.08 05:00:00 [Multicraft] Server ran command Restart
08.08 05:00:00 [Multicraft] Stopping Minecraft!

:Boot Up
08.08 05:00:07 [Server] INFO [FalseBook Block] 8 protected gateblocks 
successfully loaded.
08.08 05:00:07 [Server] INFO [FalseBook Block] 0 Doors successfully loaded.
08.08 05:00:07 [Server] INFO [FalseBook Block] 0 Bridges successfully loaded.
08.08 05:00:06 [Server] Startup Done (0.330s)! For help, type "help" or "?"
08.08 05:00:06 [Server] INFO Server permissions file permissions.yml is empty, 
ignoring it
08.08 05:00:06 [Server] INFO [Statistician] Succesfully Hooked Into Permissions
08.08 05:00:06 [Server] INFO [Statistician] Found Permissions Plugin
08.08 05:00:06 [Server] INFO [Statistician] Version 1.3 By ChaseHQ Starting 
Up...
08.08 05:00:06 [Server] INFO [Permissions] SQL Interface enabled!
08.08 05:00:06 [Server] INFO [Cenotaph] Using LWC (v3.31)
08.08 05:00:06 [Server] INFO LWC: At version: 
3.31-git-LWC-b9ea01e8c2f66480ada443ba9084dfbe9832f06e-b81jnks
08.08 05:00:06 [Server] INFO LWC: Precached 232 protections.
08.08 05:00:06 [Server] INFO LWC: Using: Native
08.08 05:00:06 [Server] INFO LWC: Loading SQLite
08.08 05:00:06 [Server] INFO LWC: Currency API: iConomyCurrency
08.08 05:00:06 [Server] INFO LWC: Permissions API: NijiPermissions
08.08 05:00:06 [Server] INFO [iConomy] hooked into Permissions.
08.08 05:00:06 [Server] INFO [MineMail] hooked into iConomy v 5.01.
08.08 05:00:06 [Server] INFO [iConomy] Developed by: [Nijikokun]
08.08 05:00:06 [Server] INFO [iConomy] v5.01 (Eruanna) loaded.
08.08 05:00:06 [Server] INFO [iConomy] Logging is currently disabled.
08.08 05:00:06 [Server] INFO LWC: Loaded 135 locale strings (0 overrides)
08.08 05:00:06 [Server] INFO [Waypoint] Warps: loaded permission groups: 
Default, Mod, Admin
08.08 05:00:06 [Server] INFO [Waypoint] Auto-update is disabled.
08.08 05:00:06 [Server] INFO [Waypoint] Saved all configurations.
08.08 05:00:06 [Server] INFO [Waypoint] Enabled version 1.5.0
08.08 05:00:06 [Server] INFO [Waypoint] Permissions plugin detected. Using 
Permissions v3.1.5
08.08 05:00:06 [Server] INFO [Waypoint] Set home to bed is enabled.
08.08 05:00:06 [Server] INFO [Waypoint] Configuration succesfully loaded.
08.08 05:00:06 [Server] INFO [Waypoint] Reading configurations.
08.08 05:00:06 [Server] INFO [Towny] Version: 0.73.2 - Mod Enabled
08.08 05:00:06 [Server] INFO [Towny] Using: Permissions, iConomy, Questioner
08.08 05:00:06 [Server] INFO [Towny] Database: [Load] flatfile [Save] flatfile
08.08 05:00:06 [Server] INFO Portcullis 1.2a was sucessfully loaded!
08.08 05:00:06 [Server] INFO FalseBookExtra v0.87alpha DEV#3 by GeMo enabled
08.08 05:00:06 [Server] INFO [Questioner] v0.4 - Enabled
08.08 05:00:06 [Server] INFO Anticreeper v2.0 (with AntiTNT) - STARTED
08.08 05:00:06 [Server] INFO AntiCreeper v2.0 (with AntiTNT) - by Rothens
08.08 05:00:06 [Server] INFO PickBoat version 0.3.5 is enabled!
08.08 05:00:06 [Server] INFO [FalseBook Block] 2 Cauldrons successfully loaded.
08.08 05:00:06 [Server] INFO FalseBookBlock v0.87alpha DEV#3 by GeMo enabled
08.08 05:00:06 [Server] INFO [FalseBook Block] 3100 Books loaded!
08.08 05:00:06 [Server] INFO [HeroChat] Permissions 3.1.5 found.
08.08 05:00:06 [Server] INFO [HeroChat] HeroChat version 4.10.3 enabled.
08.08 05:00:06 [Server] INFO [ChestShop] LWC version 3.31 loaded.
08.08 05:00:06 [Server] INFO [ChestShop] Permissions version 3.1.5 loaded.
08.08 05:00:06 [Server] INFO [ChestShop] iConomy 5 loaded.
08.08 05:00:06 [Server] INFO [ChestShop] version 3.00 BETA 9 initialized!
08.08 05:00:06 [Server] INFO Votifier enabled.
08.08 05:00:06 [Server] INFO Loaded vote listener: iConomyListener
08.08 05:00:06 [Server] INFO mcMMO version 1.0.49 is enabled!
08.08 05:00:06 [Server] INFO [mcMMO] Permissions version 3.1.5 found, using 
Permissions.
08.08 05:00:05 [Server] INFO Loading Config File...
08.08 05:00:05 [Server] INFO [mcMMO] Permissions version 3.1.5 found, using 
Permissions.
08.08 05:00:05 [Server] INFO motd version 1.1 is enabled!
08.08 05:00:05 [Server] INFO motd: Permissions support enabled.
08.08 05:00:05 [Server] INFO SelfPlanting v1.3 enabled.
08.08 05:00:05 [Server] INFO [FalseBook Core] FalseBookCore v0.87alpha DEV#3 by 
GeMo enabled!
08.08 05:00:05 [Server] INFO [SetRank] Done!
08.08 05:00:05 [Server] INFO [SetRank] Permissions system detected!
08.08 05:00:05 [Server] INFO [SetRank] Booting...
08.08 05:00:05 [Server] INFO Loading ColoredSigns
08.08 05:00:05 [Server] INFO [HeroicDeath] 1.8.1.156 enabled.
08.08 05:00:05 [Server] INFO BukkitContrib 0.1.7 has been initialized
08.08 05:00:05 [Server] INFO [Cenotaph] Cenotaph is up to date at version 1.6.2.
08.08 05:00:04 [Server] INFO [Cenotaph] Using Permissions (v3.1.5)
08.08 05:00:04 [Server] INFO Cenotaph v.1.6.2 is enabled.
08.08 05:00:04 [Server] INFO [MineMail] v 1.3 is initialized
08.08 05:00:04 [Server] INFO [MineMail]  Hooked into Permissions version 3.1.5.
08.08 05:00:04 [Server] INFO [Permissions] version [3.1.5] (Yeti)  loaded
08.08 05:00:04 [Server] INFO iConomy = false
08.08 05:00:04 [Server] INFO [MineMail] v 1.3 is initializing
08.08 05:00:04 [Server] INFO Preparing start region for level 1 (Seed: 
7658162002672090428)
08.08 05:00:03 [Server] INFO Preparing start region for level 0 (Seed: 
3253886467721799196)
08.08 05:00:03 [Server] INFO Preparing level "Terra"
08.08 05:00:03 [Server] INFO [Permissions] (Yeti) was initialized.
08.08 05:00:03 [Server] INFO LWC: Native library: 
plugins/LWC/lib/native/Linux/amd64/libsqlitejdbc.so
08.08 05:00:03 [Server] INFO LWC: Protection cache: 0/10000
08.08 05:00:03 [Server] INFO LWC: Loading shared objects
08.08 05:00:03 [Server] INFO [Waypoint] Initialising configurations.
08.08 05:00:03 [Server] INFO Entities enhanced[0] subclassed[1]
08.08 05:00:03 [Server] INFO SubClassFactory parent ClassLoader 
[org.bukkit.plugin.java.PluginClassLoader]
08.08 05:00:03 [Server] INFO DatabasePlatform name:ChestShop platform:mysql
08.08 05:00:02 [Server] INFO DataSourcePool [ChestShop] autoCommit[false] 
transIsolation[SERIALIZABLE] min[2] max[20]
08.08 05:00:02 [Server] INFO Starting Minequery server on 0.0.0.0:25566
08.08 05:00:02 [Server] INFO This server is running Craftbukkit version 
git-Bukkit-0.0.0-945-g73697a4-b1000jnks (MC: 1.7.3)
08.08 05:00:02 [Server] WARNING To change this, set "online-mode" to "true" in 
the server.settings file.
08.08 05:00:02 [Server] WARNING While this makes the game possible to play 
without internet access, it also opens up the ability for hackers to connect 
with any username they choose.
08.08 05:00:02 [Server] WARNING The server will make no attempt to authenticate 
usernames. Beware.
08.08 05:00:02 [Server] WARNING **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
08.08 05:00:02 [Server] INFO Starting Minecraft server on 0.0.0.0:25565
08.08 05:00:02 [Server] INFO Loading properties
08.08 05:00:02 [Server] INFO Starting minecraft server version Beta 1.7.3
08.08 05:00:02 [Server] INFO 16 achievements
08.08 05:00:02 [Server] INFO 151 recipes
08.08 05:00:02 [Multicraft] Loaded config for "Mod: Craftbukkit"
08.08 05:00:02 [Multicraft] Starting Minecraft!
08.08 05:00:02 [Multicraft] Loading Minecraft instance properties

Original comment by Milso.D...@gmail.com on 8 Aug 2011 at 6:24

GoogleCodeExporter commented 8 years ago
:config file

name: Towny
main: ca.xshade.bukkit.towny.Towny
version: 0.73.2
language: english.yml
last_run_version: 0.73.2
author: Shade, Modified by FuzzeWuzze. Forked by ElgarL
website: http://code.google.com/a/eclipselabs.org/p/towny/
description: >
    Resident-Town-Nation heirarchy combined with a grid based
    protection system. Including a war event.

############################################################
# +------------------------------------------------------+ #
# |                   Towny commands                     | #
# +------------------------------------------------------+ #
############################################################

commands:
    towny:
        aliases: []
    nation:
        aliases: [n, nat]
    nationchat:
        aliases: [nc]
    townchat:
        aliases: [tc]
    plot:
        aliases: []
    resident:
        aliases: [res, player]
    town:
        aliases: [t]
    townyadmin:
        aliases: [ta]
    townyworld:
        aliases: [tw]

############################################################
# +------------------------------------------------------+ #
# |                     Permissions                      | #
# +------------------------------------------------------+ #
############################################################

#  Possible permission nodes
#
#    towny.admin: User is able to use /townyadmin, as well as the ability to 
build/destroy anywhere. User is also able to make towns or nations when set to 
admin only.
#    towny.town.new :User is able to create a town
#    towny.town.claim : User is able to expand his town with /town claim
#    towny.town.resident : User is able to join towns upon invite.
#    towny.nation.new :User is able to create a nation
#    towny.wild.*: User is able to build/destroy in wild regardless.
#        towny.wild.build
#        towny.wild.destroy
#        towny.wild.switch
#        towny.wild.item_use
#    towny.wild.block.[block id].* : User is able to edit [block id] in the 
wild.
#    towny.spawntp :Use /town spawn
#    towny.publicspawntp : Use "/town spawn [town]" (teleport to other towns)
#
#

permissions:
    towny.admin:
        description: User is able to use /townyadmin, as well as the ability to build/destroy anywhere. User is also able to make towns or nations when set to admin only.
        default: op
        children:
            towny.town.*: true
            towny.nation.new: true
            towny.wild.*: true
            towny.spawntp: true
            towny.publicspawntp: true
            towny.cheat.bypass: true
    towny.cheat.bypass:
        description: Disables the anti cheat code for players with this node.
        default: op
    towny.top:
        description: User has access to the "/towny top" commands.
        default: true
    towny.town.*:
        description: User can create a town and claim land.
        default: op
        children:
            towny.town.new: true
            towny.town.claim: true
            towny.town.resident: true
    towny.town.resident:
        description: User is permitted to join towns.
        default: true
    towny.town.new:
        description: User is able to create a town
        default: true
    towny.town.claim:
        description: User is able to expand with /towny claim
        default: true
    towny.nation.new:
        description: User is able to create a nation
        default: true
    towny.wild.*:
        description: User can build/destroy in wild.
        default: op
        children:
            towny.wild.build: true
            towny.wild.switch: true
            towny.wild.destroy: true
            towny.wild.item_use: true
    towny.wild.build:
        description: User can build in wild.
        default: false
    towny.wild.destroy:
        description: User can destroy in wild.
        default: false
    towny.wild.switch:
        description: User can switch in wild.
        default: false
    towny.wild.item_use:
        description: User can use use items in wild. 
        default: false
    towny.spawntp:
        description: User can use /town spawn when on in config.
        default: true
    towny.publicspawntp:
        description: User can use /town spawn <town> when on in config.
        default: true

# these will be moved to permissions nodes at a later date

nation_creation_admin_only: false
town_creation_admin_only: false

############################################################
# +------------------------------------------------------+ #
# |                 default Town levels                  | #
# +------------------------------------------------------+ #
############################################################

# 
numResidents,namePrefix,namePostfix,mayorPrefix,mayorPostfix,townBlockLimit,upke
epModifier

townLevel:
    - '0,, Ruin,Spirit ,,1,1.0'
    - '1,, (Settlement),Hermit ,,16,1.0'
    - '2,, (Hamlet),Chief ,,32,1.0'
    - '6,, (Village),Baron Von ,,96,1.0'
    - '10,, (Town),Viscount ,,160,1.0'
    - '14,, (Large Town),Count Von ,,224,1.0'
    - '20,, (City),Earl ,,320,1.0'
    - '24,, (Large City),Duke ,,384,1.0'
    - '28,, (Metropolis),Lord ,,448,1.0'

############################################################
# +------------------------------------------------------+ #
# |                default Nation levels                 | #
# +------------------------------------------------------+ #
############################################################

# 
numResidents,namePrefix,namePostfix,capitalPrefix,capitalPostfix,kingPrefix,king
Postfix,upkeepModifier

nationLevel:
    - '0,Lands of , (Nation),,,Leader ,,1.0'
    - '10,Federation of , (Nation),,,Count ,,1.0'
    - '20,Dominion of , (Nation),,,Duke ,,1.0'
    - '30,Kingdom of , (Nation),,,King ,,1.0'
    - '40,The , Empire,,,Emperor ,,1.0'
    - '60,The , Realm,,,God Emperor ,,1.0'

############################################################
# +------------------------------------------------------+ #
# |               Town Claim/new defaults                | #
# +------------------------------------------------------+ #
############################################################

# maximum number of plots any single resident can own
max_plots_per_resident: 100
# Maximum number of towns allowed on the server.
town_limit: 300

# Minimum number of plots any towns home plot must be from the next town.
# This will prevent someone founding a town right on your doorstep
min_distance_from_town_homeblock: 10

# The maximum townblocks available to a town is (numResidents * ratio).
# Setting this value to 0 will instead use the level based jump values 
determined in the town level config.
town_block_ratio: 64
# The size of the square grid cell. Changing this value is suggested only when 
you first install Towny.
# Doing so after entering data will shift things unwantedly. Using smaller 
value will allow higher precision,
# at the cost of more work setting up. Also, extremely small values will render 
the caching done useless.
# Each cell is (town_block_size * town_block_size * 128) in size, with 128 
being from bedrock to clouds.
town_block_size: 8

############################################################
# +------------------------------------------------------+ #
# |             Default new world settings               | #
# +------------------------------------------------------+ #
############################################################

# These flags are only used at the initial setp of a new world.

# Once Towny is running each world can be altered from within game
# using '/townyworld toggle'

# force_pvp_on is a global flag and overrides any towns flag setting
force_pvp_on: false

# force_explosions_on is a global flag and overrides any towns flag setting
force_explosions_on: false

# world_monsters_on is a global flag setting per world.
world_monsters_on: true

# force_monsters_on is a global flag and overrides any towns flag setting
force_town_monsters_on: false

# force_fire_on is a global flag and overrides any towns flag setting
force_fire_on: false

############################################################
# +------------------------------------------------------+ #
# |                Global town settings                  | #
# +------------------------------------------------------+ #
############################################################

# can residents/Allies harm other residents when in a town with pvp enabled?
friendly_fire: false

# Players within their town or allied towns will regenerate half a heart after 
every health_regen_speed milliseconds.
health_regen: true
health_regen_speed: 30000

# Enables taxes to be collected daily by town/nation
# If a town can't pay it's tax then it is kicked from the nation.
# if a resident can't pay his plot tax he loses his plot.
# if a resident can't pay his town tax then he is kicked from the town.
# if a town or nation fails to pay it's upkeep it is deleted.
daily_taxes: true

# Allow towns to claim outposts (a townblock not connected to town).
allow_outposts: true

# Allow residents to own/purchase plots within a town
allow_resident_plots: true

# all the use of /town spawn
allow_town_spawn: true
# Allow regular residents to use /town spawn [town] (TP to other towns if they 
are public).
allow_town_spawn_travel: true
# Respawn the player at his town spawn point when he/she dies.
town_respawn: true

# Enables the [~Home] message.
# If false it will make it harder for enemies to find the home block during a 
war
show_town_notifications: true

############################################################
# +------------------------------------------------------+ #
# |                 Plugin interfacing                   | #
# +------------------------------------------------------+ #
############################################################

using_essentials: false
using_iconomy: true
using_permissions: true
using_questioner: true

database_load: flatfile
database_save: flatfile
daily_backups: true
flatfile_backup: zip

# The time taken between each "day". At the start of each day, taxes will be 
collected.
# Judged in milliseconds. Default is 24 hours.
day_interval: 86400000

# Lots of messages to tell you what's going on in the server with time taken 
for events.
debug_mode: false

# Spams the player named in dev_name with all messages related to towny.
dev_mode: false
dev_name: jbeckus

# Record all messages to the towny.log
logging: true

# If true this will cause the log to be wiped at every startup.
reset_log_on_boot: true

name_check_regex: '^[a-zA-Z0-9._-]*$'
name_filter_regex: '[ /]'
name_remove_regex: '[^a-zA-Z0-9._-]'

# Not a good idea to change this at the moment.
npc_prefix: 'NPC'

# Skin regular chat with a player's towny prefix, postfix, and colour.
# You can NOT change this setting and perform a /townyadmin reload.
# It requires a server restart is setting to false.
modify_chat_name: true

############################################################
# +------------------------------------------------------+ #
# |             block/item/mob protection                | #
# +------------------------------------------------------+ #
############################################################

protection:
    # Items that can be blocked within towns via town/plot flags
    # 259 - flint and steel
    # 325 - bucket
    # 326 - water bucket
    # 327 - lava bucket
    # 351 - bone/bonemeal

    item_use_ids: 259,325,326,327,351

    # Items which can be blocked or enabled via town/plot flags
    # 25 - noteblock
    # 54 - chest
    # 61 - furnace
    # 62 - lit furnace
    # 64 - wooden door
    # 69 - lever
    # 70 - stone pressure plate
    # 71 - iron door
    # 72 - wooden pressure plate
    # 77 - stone button
    # 96 - trap door
    # 84 - jukebox
    # 93/94 - redstone repeater

    switch_ids: 25,54,61,62,64,69,70,71,72,77,96,84,93,94

    # permitted entities http://jd.bukkit.org/apidocs/org/bukkit/entity/package-summary.html
    # Animals, Chicken, Cow, Creature, Creeper, Flying, Ghast, Giant, Monster, Pig, 
    # PigZombie, Sheep, Skeleton, Slime, Spider, Squid, WaterMob, Wolf, Zombie

    # Remove living entities within a town's boundaries, if the town has the mob removal flag set.

    town_mob_removal_entities: Monster,WaterMob,Flying,Slime

    # Globally remove living entities in all worlds that have their flag set.

    world_mob_removal_entities: WaterMob,Flying,Slime 

    # The maximum amount of time a mob could be inside a town's boundaries before being sent to the void.
    # Lower values will check all entities more often at the risk of heavier burden and resource use.
    # NEVER set below 1000 (guestimate)
    mob_removal_speed: 5000

    # Prevent fly and double block jump cheats.
    cheat_protection: true

############################################################
# +------------------------------------------------------+ #
# |             Unclaimed plot settings                  | #
# +------------------------------------------------------+ #
############################################################

unclaimed:

    unclaimed_zone_build: false
    unclaimed_zone_destroy: false
    unclaimed_zone_item_use: false
    unclaimed_zone_switch: false
    unclaimed_zone_ignore: 6,14,15,16,17,18,21,31,37,38,39,40,50,56,65,66,73,74,81,82,83,86,89

############################################################
# +------------------------------------------------------+ #
# |             Default Town/Plot flags                  | #
# +------------------------------------------------------+ #
############################################################

# Default permission flags for towns
# These are copied into the town data file at creation

default_perm_flags:

    # Can allies/outsiders/residents perform certain actions in the town

    # build - place blocks and other items
    # destroy - break blocks and other items
    # itemuse - use items such as flint and steel or buckets (as defined in item_use_ids)
    # switch - trigger or activate switches (as defined in switch_ids)
    default_town_perm_ally_build: false
    default_town_perm_ally_destroy: false
    default_town_perm_ally_itemuse: false
    default_town_perm_ally_switch: false
    default_town_perm_outsider_build: false
    default_town_perm_outsider_destroy: false
    default_town_perm_outsider_itemuse: false
    default_town_perm_outsider_switch: false
    default_town_perm_resident_build: true
    default_town_perm_resident_destroy: true
    default_town_perm_resident_itemuse: true
    default_town_perm_resident_switch: true

# Default permission flags for residents plots within a town

    # Can allies/friends/outsiders perform certain actions in the town

    # build - place blocks and other items
    # destroy - break blocks and other items
    # itemuse - use items such as furnaces (as defined in item_use_ids)
    # switch - trigger or activate switches (as defined in switch_ids)
    default_resident_perm_ally_build: false
    default_resident_perm_ally_destroy: false
    default_resident_perm_ally_itemuse: false
    default_resident_perm_ally_switch: false
    default_resident_perm_friend_build: true
    default_resident_perm_friend_destroy: true
    default_resident_perm_friend_itemuse: true
    default_resident_perm_friend_switch: true
    default_resident_perm_outsider_build: false
    default_resident_perm_outsider_destroy: false
    default_resident_perm_outsider_itemuse: false
    default_resident_perm_outsider_switch: false

############################################################
# +------------------------------------------------------+ #
# |                  Resident settings                   | #
# +------------------------------------------------------+ #
############################################################

# player is flagged as inactive after 1 hour (default)
inactive_after_time: 86400000

# if enabled old residents will be kicked and deleted from a town
# after Two months (default) of not logging in
delete_old_residents: true
deleted_after_time: 5184000000

# The name of the town a resident will automatically join when he first 
registers.
default_town_name: ''

############################################################
# +------------------------------------------------------+ #
# |                  Economy settings                    | #
# +------------------------------------------------------+ #
############################################################

economy:

    # Cost to use /town spawn [town]
    price_town_spawn_travel: 1.0

    price_death: 0.0
    price_death_wartime: 0.0

    # The daily upkeep to remain neutral during a war. Neutrality will exclude you from a war event, as well as deterring enemies.
    price_nation_neutrality: 100.0

    # How much it costs to start a nation.
    price_new_nation: 5000.0
    # How much it costs to start a town.
    price_new_town: 100.0
    # How much it costs to make an outpost. An outpost isn't limited to being on the edge of town.
    price_outpost: 4000.0

    # The price for a town to expand one townblock.
    price_claim_townblock: 25.0

    # The server's daily charge on each nation. If a nation fails to pay this upkeep
    # all of it's member town are kicked and the Nation is removed.
    price_nation_upkeep: 100.0

    # The server's daily charge on each town. If a town fails to pay this upkeep
    # all of it's residents are kicked and the town is removed.
    price_town_upkeep: 0.0

############################################################
# +------------------------------------------------------+ #
# |                  Wartime settings                    | #
# +------------------------------------------------------+ #
############################################################

#This setting allows you disable the ability for a nation to pay to remain 
neutral during a war.
wartime_nation_can_be_neutral: true
wartime_base_spoils: 100.0
wartime_home_block_hp: 120
wartime_min_height: 60
wartime_points_kill: 1
wartime_points_nation: 100
wartime_points_town: 10
wartime_points_townblock: 1
wartime_remove_on_monarch_death: false
wartime_town_block_hp: 60
wartime_town_block_loss_price: 100.0
wartime_warning_delay: 30

Original comment by Milso.D...@gmail.com on 8 Aug 2011 at 6:34

GoogleCodeExporter commented 8 years ago
Ok i deleted all settings and towns
i will try creating a new town tonight and testing.

Also can you please fix my typo in the subject (Spawn not span)

Original comment by Milso.D...@gmail.com on 9 Aug 2011 at 8:20

GoogleCodeExporter commented 8 years ago
Can you try with the Dev version? A few saving/loading niggles have been fixed, 
but I'm still unable to replicate this error no matter what I try.

Original comment by Elg...@palmergames.com on 9 Aug 2011 at 9:14

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
OK will try to load Dev version and see what happens.
May not have a chance to till Friday.

Original comment by Milso.D...@gmail.com on 10 Aug 2011 at 3:08

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
tried the Dev Build 
i can set spawn and it works but after rebooting server

10.08 23:54:00 [Server] INFO    ... 12 more
10.08 23:54:00 [Server] INFO    at 
org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
10.08 23:54:00 [Server] INFO    at 
com.palmergames.bukkit.towny.command.TownCommand.onCommand(TownCommand.java:73)
10.08 23:54:00 [Server] INFO    at 
com.palmergames.bukkit.towny.command.TownCommand.parseTownCommand(TownCommand.ja
va:146)
10.08 23:54:00 [Server] INFO    at 
com.palmergames.bukkit.towny.PlayerCache.getLastLocation(PlayerCache.java:150)
10.08 23:54:00 [Server] INFO Caused by: java.lang.NullPointerException
10.08 23:54:00 [Server] INFO    at 
net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
10.08 23:54:00 [Server] INFO    at 
net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
10.08 23:54:00 [Server] INFO    at 
net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
10.08 23:54:00 [Server] INFO    at 
net.minecraft.server.NetworkListenThread.a(SourceFile:105)
10.08 23:54:00 [Server] INFO    at 
net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
10.08 23:54:00 [Server] INFO    at 
net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
10.08 23:54:00 [Server] INFO    at 
net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
10.08 23:54:00 [Server] INFO    at 
net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
10.08 23:54:00 [Server] INFO    at 
net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
10.08 23:54:00 [Server] INFO    at 
net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
10.08 23:54:00 [Server] INFO    at 
org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
10.08 23:54:00 [Server] INFO    at 
org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
10.08 23:54:00 [Server] INFO    at 
org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
10.08 23:54:00 [Server] INFO org.bukkit.command.CommandException: Unhandled 
exception executing command 'town' in plugin Towny v0.74.0
10.08 23:54:00 [Server] SEVERE null
10.08 23:54:00 [Server] INFO [PLAYER_COMMAND] TheLegoMancer: /town spawn

Original comment by Milso.D...@gmail.com on 11 Aug 2011 at 4:55

GoogleCodeExporter commented 8 years ago
I also moved my server from multicraft to mcmyadmin and tested it is still 
losing town spawn

Original comment by Milso.D...@gmail.com on 11 Aug 2011 at 4:30

GoogleCodeExporter commented 8 years ago
Nothing I do can replicate ANY of your errors.

That error is indicating a Null passed as a command argument. This is 
impossible with simple typed commands. The only way it is possible is if some 
other plugin is interfacing with Towny and issuing malformed commands.

Original comment by Elg...@palmergames.com on 11 Aug 2011 at 9:09

GoogleCodeExporter commented 8 years ago
is there a list of tested mods?

I tried to turn every thing off before (save permisions) and got the same 
results.
I will try this again and see what i can find.

Is there any loggs or files i can post that may help?

Original comment by Milso.D...@gmail.com on 12 Aug 2011 at 6:22

GoogleCodeExporter commented 8 years ago
Town File:
residents=xxxxxxxxxxxxxxxxxxxxx
mayor=xxxxxxxxxxxxxx
assistants=xxxxxxxxxxx,
townBoard=Welcome to Prospect, Build something amazing
protectionStatus=residentBuild,residentDestroy,residentSwitch,residentItemUse
bonusBlocks=0
taxes=0
plotPrice=0
plotTax=0
hasUpkeep=true
pvp=false
mobs=false
public=true
explosion=false
fire=false
taxpercent=false
townBlocks=Terra:-64,186;-67,183;-66,183;-65,183;-64,183;-63,183;-62,183;-61,183
;-67,184;-66,184;-65,184;-64,184;-63,184;-62,184;-61,184;-67,185;-66,185;-65,185
;-64,185;-63,185;-62,185;-61,185;-67,186;-66,186;-65,186;-63,186;-62,186;-61,186
;-67,187;-66,187;-65,187;-64,187;-63,187;-62,187;-61,187;-67,188;-66,188;-65,188
;-64,188;-63,188;-62,188;-61,188;-67,189;-66,189;-65,189;-64,189;-63,189;-62,189
;-61,189;-60,185;-60,184;-60,183;-60,188;-59,188;-59,187;-60,187;-60,186;-68,186
;-69,186;-68,185;-68,184;-69,185;-69,184;-69,183;-68,183;|
homeBlock=Terra,-64,186
spawn=Terra,-511.30000001192104,72.0,1491.7178543778289,37.650024,187.79881

Console:
12.08 14:52:01 [Server] Startup Done (0.121s)! For help, type "help" or "?"
12.08 14:52:01 [Server] INFO Server permissions file permissions.yml is empty, 
ignoring it
12.08 14:52:01 [Server] INFO [Permissions] SQL Interface enabled!
12.08 14:52:01 [Server] INFO [Towny] Version: 0.74.0 - Mod Enabled
12.08 14:52:01 [Server] INFO [Towny] Using: Permissions
12.08 14:52:01 [Server] INFO [Towny] [Warning] Prospect does not have a spawn 
point.
12.08 14:52:01 [Server] INFO [Towny] Database: [Load] flatfile [Save] flatfile
12.08 14:52:01 [Server] INFO [Permissions] version [3.1.5] (Yeti)  loaded
12.08 14:52:01 [Server] INFO Preparing start region for level 1 (Seed: 
7658162002672090428)
12.08 14:52:00 [Server] INFO Preparing start region for level 0 (Seed: 
3253886467721799196)
12.08 14:52:00 [Server] INFO Preparing level "Terra"
12.08 14:52:00 [Server] INFO [Permissions] (Yeti) was initialized.
12.08 14:52:00 [Server] INFO This server is running Craftbukkit version 
git-Bukkit-0.0.0-945-g73697a4-b1000jnks (MC: 1.7.3)
12.08 14:52:00 [Server] INFO Starting Minecraft server on 0.0.0.0:25567
12.08 14:52:00 [Server] INFO Loading properties
12.08 14:52:00 [Server] INFO Starting minecraft server version Beta 1.7.3
12.08 14:52:00 [Server] INFO 16 achievements
12.08 14:52:00 [Server] INFO 151 recipes
12.08 14:51:59 [Multicraft] Loaded config for "Mod: Craftbukkit"
12.08 14:51:59 [Multicraft] Starting Minecraft!
12.08 14:51:59 [Multicraft] Loading Minecraft instance properties
12.08 14:51:59 [Multicraft] Received start command
12.08 14:49:56 [Multicraft] Minecraft stopped
12.08 14:49:55 [Multicraft] Minecraft shut down
12.08 14:49:55 [Server] INFO Stopping server
12.08 14:49:55 [Server] INFO Saving chunks
12.08 14:49:55 [Server] INFO [Permissions] SQL Interface disabled!
12.08 14:49:55 [Server] INFO [Towny] Version: 0.74.0 - Mod Disabled
12.08 14:49:55 [Server] INFO [Towny] saveWorldList
12.08 14:49:55 [Server] INFO [Permissions] (Yeti) disabled successfully.
12.08 14:49:55 [Server] INFO [Permissions] (Yeti) saved all data.
12.08 14:49:55 [Server] INFO [Permissions] (Yeti) saving data...
12.08 14:49:55 [Server] INFO Stopping server
12.08 14:49:55 [Server] INFO Stopping the server..
12.08 14:49:55 [Server] INFO Save complete.
12.08 14:49:54 [Server] INFO Forcing save..
12.08 14:49:54 [Multicraft] Stopping Minecraft!
12.08 14:49:54 [Multicraft] Received stop command

Even if i manually add the spawn once i restart the server it does not save the 
spawn and actually will erase it from the town file

Original comment by Milso.D...@gmail.com on 12 Aug 2011 at 7:55

GoogleCodeExporter commented 8 years ago
OK i chmod the town file to a different user and 644 then i got the following 
error when shutting down:
Figured that may help locate where it is saving

12.08 15:11:44 [Server] SEVERE  at 
net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
12.08 15:11:44 [Server] SEVERE  at 
net.minecraft.server.MinecraftServer.run(MinecraftServer.java:391)
12.08 15:11:44 [Server] SEVERE  at 
net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:312)
12.08 15:11:44 [Server] SEVERE  at 
org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:157)
12.08 15:11:44 [Server] SEVERE  at 
org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:28
1)
12.08 15:11:44 [Server] SEVERE  at 
org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:288
)
12.08 15:11:44 [Server] SEVERE  at 
org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:899)
12.08 15:11:44 [Server] SEVERE  at 
org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:128)
12.08 15:11:44 [Server] SEVERE  at 
com.palmergames.bukkit.towny.Towny.onDisable(Towny.java:259)
12.08 15:11:44 [Server] SEVERE  at 
com.palmergames.bukkit.towny.db.TownyDataSource.saveAll(TownyDataSource.java:80)
12.08 15:11:44 [Server] SEVERE  at 
com.palmergames.bukkit.towny.db.TownyDataSource.saveTowns(TownyDataSource.java:1
85)
12.08 15:11:44 [Server] SEVERE  at 
com.palmergames.bukkit.towny.db.TownyFlatFileSource.saveTown(TownyFlatFileSource
.java:885)
12.08 15:11:44 [Server] SEVERE  at java.io.FileWriter.<init>(FileWriter.java:63)
12.08 15:11:44 [Server] SEVERE  at 
java.io.FileOutputStream.<init>(FileOutputStream.java:99)
12.08 15:11:44 [Server] SEVERE  at 
java.io.FileOutputStream.<init>(FileOutputStream.java:209)
12.08 15:11:44 [Server] SEVERE  at java.io.FileOutputStream.open(Native Method)
12.08 15:11:44 [Server] SEVERE java.io.FileNotFoundException: 
plugins/Towny/data/towns/Prospect.txt (Permission denied)

Original comment by Milso.D...@gmail.com on 12 Aug 2011 at 8:13

GoogleCodeExporter commented 8 years ago
Im having the same issue

Towny Config: http://pastebin.com/VgEzxEYB
Sever startup: http://pastebin.com/AepgWp6r

The Plugins I am running using with Bukkit Build 1000
Towny
Iconomy
Big Brother
HeroChat
Permissions
World edit
world guard

Original comment by madmarky...@hotmail.com on 12 Aug 2011 at 8:36

GoogleCodeExporter commented 8 years ago
if you would like i can get you access to my test server. and if needed SSH

Original comment by Milso.D...@gmail.com on 12 Aug 2011 at 8:44

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set a town spawn
2. Reboot server
3. gives error town spawn has not been set

What is the expected output? What do you see instead?

What is your towny build?
Tested on build 0.74.0
What is your bukkit build?
1000
What operating system?
CentOS 5.6
I am getting no errors on server reboots.

Original comment by p...@clanbbf.com on 14 Aug 2011 at 7:10

Attachments:

GoogleCodeExporter commented 8 years ago
    - Fixed town spawn being lost at load when using non standard (16x16) plot sizes.

Fixed in Dev.

Original comment by Elg...@palmergames.com on 14 Aug 2011 at 7:54

GoogleCodeExporter commented 8 years ago
I still having the same issue with build Dev Build
[Towny] Version: 0.74.1 Dev - Mod Enabled

Original comment by Milso.D...@gmail.com on 22 Aug 2011 at 6:56

GoogleCodeExporter commented 8 years ago

Original comment by Hurfapotamus@gmail.com on 25 Aug 2011 at 4:59