Inactive [SEC/MECH/ECON] Residence v2.4.2 - Self serve area protection system! Buy/Sell Land! Economy! [1185]

Discussion in 'Inactive/Unsupported Plugins' started by bekvon, Mar 21, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    bekvon

    MOVED TO DEV BUKKIT:
    [​IMG]
    News

    v2.4.2 Released - 9/24/2011​
    See the change log for details.​
    Everyone using PermissionsEx, Essentials, or anything else besides the regular permissions plugin or PermissionsBukkit should add or change this in their config under the Global section:
    LegacyPermissions: true
    As of 2.4.0 the bPermissions plugin is supported directly.​
    As of 2.3.7 the PermissionsBukkit plugin is supported directly.​
    This support is not done through the new built in Permissions that bukkit provides, because there is no way to get a players group using the built in methods. However, by supporting this directly, you can now use the new permissions system while still keeping Residence, and not having to use old permissions at all anymore.​

    Latest Recommended Build
    Version: v2.4.2
    Download: Residence

    Latest Development Build
    Latest Snapshot: Residence.jar
    Latest Config: config.yml

    Links
    Developer API: Wiki
    GitHub Source: GitHub
    DevBukkit Project Page: DevBukkit

    [​IMG]

    Contributors:
    Daniel Few (Wiki)​
    Linaks (Residence Logo)​
    SirHedgehog (Code)
    GSValore (Code)​
    Samkio (Wiki Video)​
    JustinGuy (Code)​

    Addons:
    Residence Signs (by KarnEdge)​

    NOTE: All Residence usage information has been moved to the wiki!

    About:
    Residence is different from most protection plugins in that it aims for the users to be able to protect their own homes without having to bother the admin to do it. Residence has support for a variety of different protection types including preventing movement through areas, all of which can be configured by the land owner, and limited by the admin.​
    Features:
    Features (open)

    • Allows players to define protected areas for themselves.
    • Individual permissions for each protected area. Land owner can give / deny permissions globally or to other specific players.
    • Different permissions per land include: move, build, use, pvp, fire, teleport, monsters spawn, damage prevention
    • Support for group permissions on protections.
    • Multi-World support.
    • Teleport system to allow users to teleport to residences.
    • Collision detection system to prevent residences from overlapping.
    • Limits to protected size can be set up by the admin.
    • Limits to number of protected areas per player can be set.
    • Two ways to select land including using the select command, or using a item to select 2 points.
    • Messages when you enter / leave a residence. (customizable)
    • Land "leasing" system which requires users to renew the lease on their protection every X number of days or loose the protection. (off by default, see config file)
    • Recursive Sub-zoning. Create zones within zones, and then zones within those zones...
    • TONS of configuration for admins. Customize every single flag that players can or cannot use in the config file, based on their permissions group.
    • (Optional) IConomy support, can set up cost per X number of blocks protected.
    • (Optional) Permissions support.
    • In-game help / commands descriptions

    ChangeLog
    v2.4.2
    • Fix bug affecting some people with the new save system
    v2.4.1
    • Support for iConomy 6
    • Prevent enderman from messing with blocks in residences with the -build flag.
    • Paintings are now protected properly (Thanks JustinGuy!)
    • Fix Rent auto-renew bug.
    • Fix other miscellaneous small bugs.
    ChangeLog (open)

    v2.4.0
    • Support for bPermissions
    • Add "/res pset <residence> [player] removeall" command to remove all flags for that player
    • Added console only command "/resworld remove [world]" to remove all residences in a world.
    • "/res remove" now requires confirmation using the "/res confirm" command, before removing a residence.
    • Fixed subzone flag.
    • Fixed a few null pointer exceptions related to the "/res message" command, and a few other issues with it as well.
    • Fixed few cosmetic rent message bugs.
    • Fixed few mispellings...
    v2.3.9
    - Added name filter to Residences to prevent characters that mess up YML from being used. This should fix many of the errored YML files that people have been getting.
    - Fixed arrow damage in no-pvp zones (bug introduced in the Residence 1060 update).
    - Added a "Permissions Group" line of text into /res limits, this will show your Permissions group as reported by Residence.

    v2.3.8
    - Fixes to better handle the piston flag, and world "flow" flags (thx JustinGuy :) )
    - "Use" flag now covers trap doors.
    - Lease renewal can now be pulled from the Residence's bank.
    - Buying a residence now causes the default flags to be set for the user who is buying it.
    - Minor fixes to new PermissionsBukkit support (fix message about permissions not being detected when it actually was)
    - Added a few miscellaneous forgotten commands to the in-game Residence help.

    v2.3.7
    • Added direct support for PermissionsBukkit (doesn't go through the bukkit API)
    • Added LegacyPermissions true/false config option.
    v2.3.6
    • Support for residence.admin and residence.create permission nodes using new permission system.
    • Recommend using SuperPermsBridge or something that ensures backwards compatibility with old permissions.
    • Few permission changes to hopefully make it work better.
    v2.3.5
    • Fix for firespread flag with CB1000.
    • Added "piston" flag.
    v2.3.4
    • Fixes for CB1000
    • Fixes for a few minor bugs, and for concurrent modification issue with the Lease Manager.
    v2.3.3
    • Removed subzone list from /res info, and gave it its own command that supports multiple pages, /res sublist <residence> <page>
    • If the save file errors, it will now be preserved rather then overwritten, it will be renamed res-ERRORED.yml, the plugin will now disable itself upon error as well unless the StopOnSaveFault option in the config is set to false.
    • Fixed non-working per-world flags.
    • Fixed a few message bugs.
    • Add /resadmin removeall <player> admin command to remove all residences owned by a player.
    v2.3.2
    • Changed MaxUpDown in the default config to 128...
    • Fixed issue with /res vert still selecting more then the MaxUpDown allowed.
    v2.3.1
    • Fixed a few initial issues with a couple language localization messages.
    • Removed area list from /res info, use /res area list [residence] or /res area listall [residence] now.
    v2.3
    • New language localization system, upon first run v2.3 will create a Languages folder under your Residence config folder with the default English.yml file.
    • New in-game help system. (part of the new language localization system)
    • All commands now run without admin privileges unless you specify /resadmin before.
    • Added config option to allow rented residences to be modifiable. (PreventRentModify option)
    • Fixes to improve compatibility with Permissions 3.X
    • /res listall now has pages
    • Added the "physics" flag to control block movement. (separated from the flow flag more like)
    • New ResidenceTPEvent, and ResidenceRentEvent API events
    • Fixed residences not being properly removed from lease / rent system, upon deletion.
    • Fixed bug related to default group option in the config.
    • Fixed global "container" flag bug.
    • Fixed some NPE's related to explosions.
    • Added /resload command to load the save file after you make changes to it (UNSAFE, as it does not save residences first, and so you may loose new residences that were just created)
    v2.2
    • Added per residence Blacklist/Ignorelists that will allow you to specify certain block types to be ignored from residence protections, or unable to be placed in residences.
    • Added Server owned land, use /resadmin server <residence> to change the owner to "Server Owned"
    • Added global Ignorelists which allow certain block types to become unprotectable for the whole world / for a specific user group.
    v2.1.3
    • Fixed a couple bugs with the lease system, including being enabled when it shouldn't be and the lease auto-renew option.
    v2.1.2
    • Added "/res area replace" command, allows you to resize / move a physical area. If the new area is bigger, it will only charge you for the difference in size.
    • Added 'waterflow' and 'lavaflow' flags which override the flow flag if set.
    • Fixed a bug causing money to still be charged when failing to add a area to a residence.
    v2.1.1
    • Fix case sensitivity bug in rent system.
    v2.1
    • BOSEconomy support.
    • Essentials Economy support.
    • RealShop Economy support.
    • Added the 'place' and 'destroy' flags, which if used overrule the 'build' flag. These allow you to give only block placement permissions in a certain area, or only block destroy permissions.
    • /res check [residence] [flag] <player> command, this command evaluates if <player> is affected by [flag] at [residence]. You can leave off <player> and it will use your name.
    • Added a LeaseAutoRenew config option, that will cause leases to automatically renew so long as the player has the money to do so. Note that, if economy is disabled this doesn't work, as there would be no point to leases. Needs Testing! :)
    • Global FlagPermission config section, that allows you to give permission to use a flag to all groups, useful for the build / move / use flag that you almost definitely want everyone to have access to. Flags under each individual group will overrule these.
    • You can now set a limits on how deep or how high protections can go into the group, using each groups MinHeight and MaxHeight settings.
    • /res select sky, and /res select bedrock commands, these auto adjust to the above mentioned MinHeight and MaxHeight settings, so it won't select into a area you can't protect.
    • Rent system implemented.
    • Many bug fixes, including proper creeper explosion prevention now. Also, fixed some bugs when renaming residences.
    • New healing flag.
    • The monsters flag has been split up into "animals" and "monsters" now.
    • New Developer API, including custom Bukkit events.
    • New Global CreatorDefault / GroupDefault / ResidenceDefault flag sections to help clean up the Groups section, and remove redundant flags.
    • Probably some other minor things I've forgot :)
    v2.0
    - Residence 2.0 now in alpha testing, core code has been mostly rewritten.​
    - Supports multiple areas per residence using '/res area <add/remove>' commands.​
    - Added new selection commands '/res select expand' and '/res select shift'​
    - Added Predefined permission lists that can be applyed to residences.​
    - Enter / Leave messages now support %player, %owner and %area variables.​
    - Config file has been cleaned up and most things are better named.​
    - Should be fixed to work with newer iConomy versions.​
    - Save system now only uses yml as save format.​
    - Save system wont corrupt the whole file if one residences gets corrupted, you just loose that one residence.​
    - When a residence changes owner, flags are set to default for that owner.​
    - Added '/res default' command to manually reset flags to default.​
    - Released source code for v2.0​

    v1.2.8 - BETA
    - Fixed broken flag setting permissions.​

    v1.2.7 - BETA
    - Fixed chests being able to be opened from outside protected area.​
    - Fixed enter/leave message (hopefully)​
    v1.2.6 - BETA
    - Updated for CB 612 / Minecraft 1.4​
    v1.2.5 - BETA
    - Fixed tiny bug in saving messages.​
    - yml is now the default save format because its more reliable.​

    v1.2.4 - BETA
    - Fixed bug related to fire / ignite event.​
    - Added ability to remove enter / leave messages​

    v1.2.3 - BETA
    - Added a optional different save system, you can now save residences in pure YML format (same format as config files). See the config file for how to enable.​

    v1.2.2 - BETA
    - Fixed TP bug.​

    v1.2.1 - BETA
    - Fixed bug in new saving system.​

    v1.2 - BETA
    - New save system, will attempt to auto-convert from old system.
    - Fixed some permission bugs when not using permissions plugin.​
    - OPs are now residence admins when not using permissions.​
    - Fixed collisions detection issues related to having multiple worlds.​
    - Added global pvp setting.​
    - Added a "flow" flag to control water/lava flow in residences.​
    v1.1.9 - BETA
    - Fixed a severe bug when not using permissions.​

    v1.1.8 - BETA
    - Fixed a subzone bug.​
    v1.1.7 - BETA
    - Added ability to buy and sell land using /res market commands.​
    - Added a land leasing system which can be configured to expire protections if they are not renewed after a period of time. See the /res lease command. (this is off by default, turn it on and customize it in the config)​
    - Implemented a Auto-Save interval. Saves residence areas every X minutes.​
    - Fixed minor onBlockIgnite error.​
    - Added a few admins commands using /resadmin.​

    v1.1.6 - BETA
    - Fixed spaces not working in enter / leave messages.​

    v1.1.5 - BETA
    - Added Enter / Leave messages for Residences, as well as a permission option in the config to allow / deny changing of them.​
    - Fixed residence admins not being able to modify the outside world when using deny build rights outside of residences.​
    - Fixed issue related to default group.​
    - Added a config option to specify the default group.​

    v1.1.4 - BETA
    - Fixed bug in group permissions...​
    v1.1.3 - BETA
    - Changed the configuration vastly again, server admins now have control over every flag for every group.​
    - Group permissions implemented, but in need of TESTING! :)
    - World permission implemented (default world permissions for when you are not in a residence zone)​
    - Fixes subzone collision bug.​

    v1.1.2 - BETA
    - Fixed residence admins still requiring IConomy money.​
    - Fixed a bug with TNT explosions.​

    v1.1.1 - BETA
    - Fixed bug breaking subzone permissions.​

    v1.1 - BETA
    - Recusive sub-zoning, make subzones within zones, and then subzones within those subzones :)
    - Different limits based on permissions group​
    - New setting for choosing the selection tool item id.​
    - Anti-lag configuration option.​
    - Moved some permissions into the config file.​
    - All protections are now OFF by default.​

    v1.0.1 - 3/21/2011
    - Added permissions / config option to disable teleports.​

    v1.0 - 3/20/2011
    - Initial Release​

    Bug Reports:
    Please include at minimum the following information with all bug reports:
    • CraftBukkit Version
    • Residence Version
    • What you were doing when the error occurred.
    If available, also include:
    • Any server console error messages
    • Other plugins that may be causing the issue
     
  2. Offline

    beleg

    thank you your plugin is working fine :) but sometimes the chat is going on my nerves :D could you add something like max messages per 10 seconds :D ?
     
  3. Offline

    o0AzzA0o

    Version: v2.4.1

    craftbukkit 1185


    2011-09-24 03:33:31 [SEVERE] null
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
    at com.bekvon.bukkit.residence.Residence.loadYml(Residence.java:1766)
    at com.bekvon.bukkit.residence.Residence.onEnable(Residence.java:237)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    at com.bekvon.bukkit.residence.Residence.setEnabled(Residence.java:1702)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:920)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-24 03:33:31 [INFO] [Residence] - FAILED INITIALIZATION! DISABLED! ERROR:

    was running fine on previous version updated the jar and i have this ..... im on latest recomended build and latest residence

    i thought it might be the config so i regenerated that to no avail. i have put server into lockdown closed till this is fixed.

    Warning +! make a full backup of your residence.yml database because it converts it to new save format and if it fails to work like it does for me then you will have no way of downgrading.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
  4. Offline

    MadcowD

    Code:
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
            at com.bekvon.bukkit.residence.Residence.loadYml(Residence.java:1766)
            at com.bekvon.bukkit.residence.Residence.onEnable(Residence.java:237)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at com.bekvon.bukkit.residence.Residence.setEnabled(Residence.java:1702)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:920)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    05:33:28 [INFO] [Residence] - FAILED INITIALIZATION! DISABLED! ERROR:
    05:33:28 [SEVERE] null
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
            at com.bekvon.bukkit.residence.Residence.loadYml(Residence.java:1766)
            at com.bekvon.bukkit.residence.Residence.onEnable(Residence.java:237)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at com.bekvon.bukkit.residence.Residence.setEnabled(Residence.java:1702)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:920)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
     
  5. Offline

    BlancoLanda

    Here you have an spanish translate made by me! It took me like 3 hours D:

    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Dec 14, 2016
  6. Offline

    thernztrom

    @bekvon
    Getting this error too! :( Running iConomy 6 along with latest RB1185.
    Get this in console:

    Residence: Found Permissions Plugin!
    Residence: Permissions running in Legacy mode!
    Residence: Successfully linked with iConomy! Version: 6.0.5b
    Residence: - FAILED INITIALIZATION! DISABLED! ERROR:
     
  7. Offline

    Vixolus

    Getting a bunch of these errors like the people are having above.
     
  8. Offline

    Sevidra

    Uh... guys... little point to make...

    iConomy 6 is for 1080? The latest bukkit is 1185. Might that be the problem?
     
  9. Offline

    x0pk1n

    This comes up on my command prompt.... im using 1185......

    161 recipes
    17 achievements
    17:52:59 [INFO] Starting minecraft server version Beta 1.8.1
    17:52:59 [INFO] Loading properties
    17:52:59 [INFO] Starting Minecraft server on *:25565
    17:52:59 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1067
    -g6301507-b1185jnks (MC: 1.8.1)
    17:53:00 [INFO] Preparing level "World-01"
    17:53:00 [INFO] Default game type: 0
    17:53:00 [INFO] Preparing start region for level 0 (Seed: -278813327)
    17:53:01 [INFO] Preparing spawn area: 4%
    17:53:02 [INFO] Preparing spawn area: 20%
    17:53:03 [INFO] Preparing spawn area: 48%
    17:53:04 [INFO] Preparing spawn area: 65%
    17:53:05 [INFO] Preparing spawn area: 73%
    17:53:06 [INFO] Preparing start region for level 1 (Seed: -5451471854783767241)
    17:53:06 [INFO] Preparing spawn area: 8%
    17:53:07 [INFO] BOSEconomy: Could not locate the Permissions plugin. Option 'use
    -permissions-plugin' will be ignored.
    17:53:07 [INFO] BOSEconomy v0.7.2 enabled.
    17:53:07 [INFO] Friendly Creepers has been enabled!
    17:53:07 [INFO] [iJustLocked] Permission system not detected, plugin disabled.
    17:53:07 [INFO] [iJustLocked] iJustLocked v0.1 is enabled. Plugin by Ancetras.
    17:53:07 [INFO] Log version 0.8: Loaded.
    17:53:07 [INFO] Log version 0.8: Events initialised successfully.
    17:53:07 [INFO] Log version 0.8: Data loaded successfully.
    17:53:07 [INFO] Log version 0.8: Loaded properties file.
    17:53:07 [INFO] PlgEssentials version 4.6 is enabled!
    17:53:07 [INFO] PlgWarp version 2.2 is enabled!
    17:53:08 [INFO] [Reporter] v2.6.0 - Checking SQLite tables...
    17:53:08 [INFO] [Reporter] v2.6.0 - Using existing SQLite tables.
    17:53:08 [INFO] [Reporter] v2.6.0 - Reporter enabled.
    17:53:08 [INFO] WorldEdit 4.6 enabled.
    17:53:08 [INFO] WorldEdit: No known permissions plugin detected. Using configura
    tion file for permissions.
    17:53:08 [INFO] [EasyBan] EasyBan enabled; Version: 2.0
    17:53:08 [INFO] Done (0.823s)! For help, type "help" or "?"
    17:59:17 [INFO] x0pk1n [/127.0.0.1:2637] logged in with entity id 399 at ([World
    -01] -299.0, 64.0, 143.78125)
    17:59:17 [INFO] New max size: 484
    17:59:17 [INFO] New max size: 784
    18:12:50 [INFO] Connection reset
    18:12:50 [INFO] x0pk1n lost connection: disconnect.endOfStream
    18:16:04 [INFO] x0pk1n [/127.0.0.1:2938] logged in with entity id 10991 at ([Wor
    ld-01] -275.2889747142077, 83.0, 178.8063893419727)
    18:42:57 [INFO] Connection reset
    18:42:57 [INFO] x0pk1n lost connection: disconnect.endOfStream
    >reload
    18:43:39 [INFO] BOSEconomy: Saving plugin data.
    18:43:39 [INFO] BOSEconomy 0.7.2 disabled.
    18:43:39 [INFO] Friendly Creepers has been disabled!
    18:43:39 [INFO] [iJustLocked] iJustLocked is disabled.
    18:43:39 [INFO] Log version 0.8: Shutting down.
    18:43:39 [INFO] Log version 0.8: Unloaded.
    18:43:39 [INFO] PlgEssentials version 4.6 stopping...
    18:43:39 [INFO] PlgWarp version 2.2 stopping...
    18:43:39 [INFO] [Reporter] v2.6.0 - Closing SQLite connection...
    18:43:39 [INFO] [Reporter] v2.6.0 - Reporter disabled.
    18:43:39 [INFO] [EasyBan] EasyBan disabled; Version: 2.0
    18:43:40 [INFO] BOSEconomy: Could not locate the Permissions plugin. Option 'use
    -permissions-plugin' will be ignored.
    18:43:40 [INFO] BOSEconomy v0.7.2 enabled.
    18:43:40 [INFO] Friendly Creepers has been enabled!
    18:43:40 [INFO] [iJustLocked] Permission system not detected, plugin disabled.
    18:43:40 [INFO] [iJustLocked] iJustLocked v0.1 is enabled. Plugin by Ancetras.
    18:43:40 [INFO] Log version 0.8: Loaded.
    18:43:40 [INFO] Log version 0.8: Events initialised successfully.
    18:43:40 [INFO] Log version 0.8: Data loaded successfully.
    18:43:40 [INFO] Log version 0.8: Loaded properties file.
    18:43:40 [INFO] PlgEssentials version 4.6 is enabled!
    18:43:40 [INFO] PlgWarp version 2.2 is enabled!
    18:43:40 [INFO] [Reporter] v2.6.0 - Checking SQLite tables...
    18:43:40 [INFO] [Reporter] v2.6.0 - Using existing SQLite tables.
    18:43:40 [INFO] [Reporter] v2.6.0 - Reporter enabled.
    18:43:40 [INFO] [Residence] Failed to write file: plugins\Residence\config.yml f
    rom the Residence jar file, Error:java.io.FileNotFoundException: plugins\Residen
    ce\config.yml (The system cannot find the path specified)
    18:43:40 [INFO] [Residence] Failed to write file: plugins\Residence\config.yml f
    rom the Residence jar file, Error:java.io.FileNotFoundException: plugins\Residen
    ce\config.yml (The system cannot find the path specified)
    18:43:40 [INFO] [Residence] Config Invalid, wrote default...
    18:43:40 [INFO] [Residence] Permissions plugin NOT FOUND!
    18:43:40 [SEVERE] null
    java.lang.NullPointerException
    at com.bekvon.bukkit.residence.protection.WorldFlagManager.parsePerms(Wo
    rldFlagManager.java:83)
    at com.bekvon.bukkit.residence.protection.WorldFlagManager.<init>(WorldF
    lagManager.java:37)
    at com.bekvon.bukkit.residence.Residence.onEnable(Residence.java:190)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    at com.bekvon.bukkit.residence.Residence.setEnabled(Residence.java:1702)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:920)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:278)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156
    )
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:410)
    at org.bukkit.Bukkit.reload(Bukkit.java:173)
    at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:
    22)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:16
    3)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    53)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    49)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:499)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:478)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    18:43:40 [INFO] [Residence] Wrote default Language file...
    18:43:40 [INFO] [Residence] Save directory does not exist...
    18:43:40 [INFO] [Residence] Enabled! Version 2.4.1 by bekvon
    18:43:40 [INFO] WorldEdit 4.6 enabled.
    18:43:40 [INFO] WorldEdit: No known permissions plugin detected. Using configura
    tion file for permissions.
    18:43:40 [INFO] [EasyBan] EasyBan enabled; Version: 2.0
    18:43:40 [INFO] Reload complete.
    >reload
    18:43:56 [INFO] BOSEconomy: Saving plugin data.
    18:43:56 [INFO] BOSEconomy 0.7.2 disabled.
    18:43:56 [INFO] Friendly Creepers has been disabled!
    18:43:56 [INFO] [iJustLocked] iJustLocked is disabled.
    18:43:56 [INFO] Log version 0.8: Shutting down.
    18:43:56 [INFO] Log version 0.8: Unloaded.
    18:43:56 [INFO] PlgEssentials version 4.6 stopping...
    18:43:56 [INFO] PlgWarp version 2.2 stopping...
    18:43:56 [INFO] [Reporter] v2.6.0 - Closing SQLite connection...
    18:43:56 [INFO] [Reporter] v2.6.0 - Reporter disabled.
    18:43:56 [INFO] [Residence] Disabled!
    18:43:56 [INFO] [EasyBan] EasyBan disabled; Version: 2.0
    18:43:56 [INFO] BOSEconomy: Could not locate the Permissions plugin. Option 'use
    -permissions-plugin' will be ignored.
    18:43:56 [INFO] BOSEconomy v0.7.2 enabled.
    18:43:56 [INFO] Friendly Creepers has been enabled!
    18:43:56 [INFO] [iJustLocked] Permission system not detected, plugin disabled.
    18:43:56 [INFO] [iJustLocked] iJustLocked v0.1 is enabled. Plugin by Ancetras.
    18:43:56 [INFO] Log version 0.8: Loaded.
    18:43:56 [INFO] Log version 0.8: Events initialised successfully.
    18:43:56 [INFO] Log version 0.8: Data loaded successfully.
    18:43:56 [INFO] Log version 0.8: Loaded properties file.
    18:43:56 [INFO] PlgEssentials version 4.6 is enabled!
    18:43:56 [INFO] PlgWarp version 2.2 is enabled!
    18:43:57 [INFO] [Reporter] v2.6.0 - Checking SQLite tables...
    18:43:57 [INFO] [Reporter] v2.6.0 - Using existing SQLite tables.
    18:43:57 [INFO] [Reporter] v2.6.0 - Reporter enabled.
    18:43:57 [INFO] [Residence] Wrote default config...
    18:43:57 [INFO] [Residence] Permissions plugin NOT FOUND!
    18:43:57 [INFO] [Residence] iConomy NOT found!
    18:43:57 [SEVERE] null
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
    at com.bekvon.bukkit.residence.Residence.loadYml(Residence.java:1766)
    at com.bekvon.bukkit.residence.Residence.onEnable(Residence.java:237)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    at com.bekvon.bukkit.residence.Residence.setEnabled(Residence.java:1702)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:920)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:278)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156
    )
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:410)
    at org.bukkit.Bukkit.reload(Bukkit.java:173)
    at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:
    22)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:16
    3)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    53)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    49)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:499)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:478)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    18:43:57 [INFO] [Residence] - FAILED INITIALIZATION! DISABLED! ERROR:
    18:43:57 [SEVERE] null
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
    at com.bekvon.bukkit.residence.Residence.loadYml(Residence.java:1766)
    at com.bekvon.bukkit.residence.Residence.onEnable(Residence.java:237)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    at com.bekvon.bukkit.residence.Residence.setEnabled(Residence.java:1702)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:920)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:278)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156
    )
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:410)
    at org.bukkit.Bukkit.reload(Bukkit.java:173)
    at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:
    22)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:16
    3)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    53)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    49)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:499)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:478)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    18:43:57 [INFO] WorldEdit 4.6 enabled.
    18:43:57 [INFO] WorldEdit: No known permissions plugin detected. Using configura
    tion file for permissions.
    18:43:57 [INFO] [EasyBan] EasyBan enabled; Version: 2.0
    18:43:57 [INFO] Reload complete.
    >
     
  10. Offline

    dotromain

    I've got the same error, but, just when the folder save is existing.
    When I not have the folder save, Residence works perfectly .
     
  11. Offline

    FuzzeWuzze

    Yup same conversion error, i think it has something to do with him reading some of his files back.

    If you delete all the config/save/language and start it, it recreates them and loads fine..but upon restart it tries to read something from one of those files and dies.
     
  12. Offline

    BlancoLanda

    I cannot make the plugin work! (either with English.yml), My console gets this error:

    Code:
    20:18:32 [INFO] [Residence] Found Permissions Plugin!
    20:18:33 [INFO] [Residence] Successfully linked with iConomy! Version: 6.0.5b
    20:18:33 [SEVERE] null
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
    
            at com.bekvon.bukkit.residence.Residence.loadYml(Residence.java:1766)
            at com.bekvon.bukkit.residence.Residence.onEnable(Residence.java:237)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at com.bekvon.bukkit.residence.Residence.setEnabled(Residence.java:1702)
    
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:920)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:278)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156
    )
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    20:18:33 [INFO] [Residence] - FAILED INITIALIZATION! DISABLED! ERROR:
    20:18:33 [SEVERE] null
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
    
            at com.bekvon.bukkit.residence.Residence.loadYml(Residence.java:1766)
            at com.bekvon.bukkit.residence.Residence.onEnable(Residence.java:237)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at com.bekvon.bukkit.residence.Residence.setEnabled(Residence.java:1702)
    
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:920)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:278)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156
    )
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    So bad... :(, It works for all but not for me, I have CB 1185 and the plugin is for 1185, anyone knows whats the problem?
     
  13. Offline

    cs1

    The issue is that yml.getRoot().get("Seed"); on line 1766 in Residence.java does not allways return an Long. In some cases where the seed for a world is a low value the object returned will be of type Integer.

    It should be easy enough to make a patch that checks the type of the object and converts the Integer to a Long.
     
  14. Offline

    MadcowD

    Lemme try
     
  15. Offline

    matt4471

    Ok. I don't know if any of you are having this problem, but after I installed residence and made a few lots, I can't die anymore. Any one know why?

    CB: 1185
    Residence: 2.4.1
     
  16. Offline

    MadcowD

    Okay so after investigating it already does convert it, I made a commit which does it on the second line but I can't compile it to find out due to the nature of the project. (Could use some help)
    Code:
    Long seed = (Long)yml.getRoot().get("Seed");
    if(seed == (Long)world.getSeed()) //Should fix the problem where the seed returns a integer                            worlds.put(world.getName(), yml.getRoot().get("Residences"));
     
  17. Offline

    cs1

    You can't cast an Integer obejct to a Long object....
     
  18. Offline

    darkhelmet

    I'm having the same errors as everyone else:

    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
    at com.bekvon.bukkit.residence.Residence.loadYml(Residence.java:1766)
    at com.bekvon.bukkit.residence.Residence.onEnable(Residence.java:237)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    at com.bekvon.bukkit.residence.Residence.setEnabled(Residence.java:1702)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:920)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    13:45:09 [INFO] [Residence] - FAILED INITIALIZATION! DISABLED! ERROR:
    13:45:09 [SEVERE] null
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
    at com.bekvon.bukkit.residence.Residence.loadYml(Residence.java:1766)
    at com.bekvon.bukkit.residence.Residence.onEnable(Residence.java:237)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    at com.bekvon.bukkit.residence.Residence.setEnabled(Residence.java:1702)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:920)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  19. Offline

    MadcowD

  20. Offline

    cs1

    You should be able to complie it with just the dependencies.
     
  21. Offline

    MadcowD

    Sorry, I'm quite new to the whole plugin deal (not so new to programming (C++)), how would I do this in netbeans if I have the whole git repository.. (Spoon Feeeddd)
     
  22. Offline

    cs1

    I don't use netbeans, but in eclipse it is just a matter of having all the required jars on the build path.

    However your code still looks iffy. I don't think you can cast objects to primtive types. Noramly you would use somthing like myIntObject.intValue().
     
  23. Offline

    MadcowD

    I realized that, and if I could actually run my code I would see what the get("Seed"); function would return... But I'll keep trying to run it. Instead of making Long seed get the return from get("Seed"); I made long seed get the return. I'll try to figure out how to run it I guess.
    Edit:
    Apparently residence has dependencies on essentials and a few others, hmm. I'll keep trying.
     
  24. Offline

    cs1

    get("seed") returns an Object. It can be an Integer or Long assuming there .yml file is correct. You may want to try somthing like:

    Object obseed = yml.getRoot().get("Seed");
    Long seed;
    if(obseed.getClass() == Long.class) {
    seed = (Long)obseed;
    } else {
    seed = new Long((long)((Integer)obseed).intValue());
    }

    Tho i am sure there is a more elegant soultion.
     
  25. Offline

    MadcowD

    Thank you for letting me know, I'm still having trouble compiling it with NetBeans! Google is certainly not helping me either. I'm actually confused with the whole build.xml deal. I've used Dinnerbone's plugin generator in the past and it gave me a pom.xml which magically gave me a list of dependancies and downloaded everything (I assume this is a Mavine project?). In netbeans I've attempted to start a new project from existing code and it forces me to make a second build.xml.
    As you can see I'm confused as heck. I'll get back to you when I can figurei t out.
     
  26. Offline

    algiuxas

    CraftBukkit RB #1185, PermissionsEX 1.14, LegacyPermissions: true

    Generates the following whenever /res [<anything>] is executed:

    Show Spoiler
    Code:
    00:26:46 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'res' in plugin Residence v2.4.1
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:41)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:353)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:756)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:721)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getPrimaryGroup(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
            at com.bekvon.bukkit.residence.permissions.OrigionalPermissions.getPlayerGroup(OrigionalPermissions.java:29)
            at com.bekvon.bukkit.residence.permissions.PermissionManager.getPermissionsGroup(PermissionManager.java:105)
            at com.bekvon.bukkit.residence.permissions.PermissionManager.getGroupNameByPlayer(PermissionManager.java:88)
            at com.bekvon.bukkit.residence.permissions.PermissionManager.getGroupNameByPlayer(PermissionManager.java:74)
            at com.bekvon.bukkit.residence.permissions.PermissionManager.getGroup(PermissionManager.java:56)
            at com.bekvon.bukkit.residence.Residence.onCommand(Residence.java:640)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
            ... 13 more
    


    Please help me :)
     
  27. Offline

    cs1

    I do have a working build for my server i complied this morning which works for me, however i removed many dependencies i do require such as all of the economy support, and everything but legacy permissions.

    I can upload it if any one is interested.
     
  28. Offline

    MadcowD

    Yeah I'd like to see what you've done.
    Could you include your entire project folder (eclipse workspace)
     
  29. Offline

    cs1

    The jar:
    http://cs1.ca/Residence.jar

    The project:
    http://cs1.ca/Residence.zip

    Note that i removed alot of things I don't need but many others may. Also i did not include the dependencies.

    It is working on my server with PremissionsEX and no economy.


    Edit:

    I should also add that in that project i simply added the dependencies i use to the build path so as you can see in the .classpath file they are linked to files in my downloads folder which likely will not be ideal for any one wanting anything other then a quick fix.
     
  30. Offline

    bekvon

    Hey everyone, I saw the issue with the new save system and uploaded a new version to fix it... Sorry about that, it worked fine on my setup but apparently not everyones setup. Thanks all who reported this :)

    EDIT: I noticed some of you had already figured out the problem, for some reason YML sometimes returned the seed value as a Long and sometimes as a Integer. I don't know why its different, but either way Ive fixed the problem by checking for Integer and Long, an properly doing conversion if necessary. It SHOULD always be a Long, as Minecraft seed values are Longs... but maybe I'm failing to understand something here :(
     
  31. Offline

    cs1


    The YML parser is not smart enough to know that a seed should be a long, it just sees a number and guess at the type based on it's format. When you write the seed to the yml file the type is lost and only a number is stored as text in the file. Since seeds are random there is a chance that it will be small enough to fit in an int (under 2,147,483,647) and the yml parser will read it in as such.

    A bigger issue might be why are you using the seed at all here? Maybe i am missing somthing, is there a need to ensure that the seed is the same as when the res file was made? Could there be a case where some one may change there world's seed but not wan't to remove all there residences? I would think it should be up to the server admin to not make multiple worlds with the same name, and to remove the residence file for an old world if they remake it.
     
Thread Status:
Not open for further replies.

Share This Page