bekvon / residence Goto Github PK
View Code? Open in Web Editor NEWResidence Bukkit Plugin
License: GNU General Public License v3.0
Residence Bukkit Plugin
License: GNU General Public License v3.0
Residence - Self serve area protection system ============================================= Official links: Wiki: https://github.com/bekvon/Residence/wiki IRC: irc://irc.esper.net/Residence Spigot Resource page: https://www.spigotmc.org/resources/residence.11480/ Downloads: Latest Development Snapshot: https://github.com/bekvon/Residence/raw/dist/dist/Residence.jar Latest Config.yml: https://github.com/bekvon/Residence/raw/master/src/config.yml To build the source yourself, simply download the source: https://github.com/bekvon/Residence/zipball/master Unzip and run ant. Need Help?: Before asking for help, please check the FAQ(wiki). It has some solutions to frequent problems. To help us better assist you, please follow these simple guidelines when asking for help. 1)Use a service such as http://pastebin.com when sharing errors or configurations. 2)Include the following version information: Craftbukkit, Residence, Vault. If you are unsure, type in the Minecraft console: "/version [plugin]" left blank will default to Craftbukkit. 3)Include a paste of your current config.yml from Residence and your permissions.yml from your respective permissions plugin. 4)Be as detailed as possible when describing your problem. How can we reproduce your problem? If no one is available on the IRC channel, please make a post on the Residence BukkitDev page with the above information.
This has been an issue for a while I've just never reported it. Running the latest release of Residence on bukkitdev.
When we do /resadmin delete (res)
to force-delete a residence, we're prompted with /res confirm/deny
, but it immediately says something about no permission to delete.
When I transfer the ownership of the residence to myself and then delete, the confirmation works fine.
The wiki page is down. Can you create a page here on github with all the possible commands and stuff? or can it be found somewhere else?
It's out check http://dev.bukkit.org/server-mods/iconomy/
The current Permission integrations only allow using Residences with popular permission plugins (Permissions 2/3, BukkitPermissions, etc), however, anybody who uses a roll-your-own Permission system is SOL.
Please support built-in Permission nodes instead of using custom integrations.
Suggested node:
residence.group.myresgroup
Where myresgroup is the group in config.yml
This change would allow anybody who wants to use whatever permission plugin they want be able to use the config.yml group functionality
We cannot seem to get grass to spread without enabling firespread. I noticed a commit for that but it seems like you're just combining them into one?
getOfflinePlayers() is an extremely dangerous operation. I understand this is needed for the initial conversion, but this code should only be in a separate method that is only called during that initial conversion.
To get a UUID for an offline player, there are some other libraries out there you can use that calls the mojang API (or cacheing proxy API's) that will be faster and safer than iterating all offline players which on an old server is pretty much guaranteed to crash the server / time everyone out.
For example I have 84k player files on my oldest server... That would be devastating.
What's scary is this method is called on Residence object creation. So if you have say 1k residences, that startup is pretty much doomed.
Or if you change owner of a res to another offline player, again server hang.
Additionally, you should not use Residence.getServ().getPlayer() - this is the wrong API. You're looking for getPlayerExact().
getPlayer has different behavior than you are expecting. It does not do an exact name lookup and can return a different player than you are expecting.
Finally, why is Residence.getServ() a thing? You can replace all with Bukkit.getServer()
Hello! I am not a coder, but I play on a server where Residence is used. One flag that would be very much appreciated, but which I have been told does not exist is some sort of "passive mob protection" flag.
Currently the "damage" flag will protect friendly mobs, such as players, dogs, and cats. However the "damage" flag will not protect passive mobs such as cows, pigs, chicken, sheep, and villagers.
So my request is for a "passive" flag that would prohibit damage to these mobs.
Thank you for reading. -LWK
With WorldEdit installed, If you use the residences selection tool it will make wrong selections sometimes. (Remember to set worldedit selection tool to a one different than residences).
I think this is because setpos when WorldEdit installed is doing strange things setting min and max values.
So here is the errors YAML parser found, and then the lines.
It's from french.yml
Errors:
while parsing a block mapping
in "", line 13, column 5:
InvalidResidence: Residence inva ...
^
expected , but found ''
in "", line 71, column 44:
... ckFalse: 'Flag %1 ne peut pas s'appliquer au joueur %2'
^
Lines:
InvalidResidence: Residence invalide...
FlagCheckFalse: 'Flag %1 ne peut pas s'appliquer au joueur %2'
I tried to point out the problem while comparing it to the english one, but it seems that there is no problem... I really don't know what to do.
Thanks for help.
KhaarNaj
Hello,
I wish to open a dialog up between yourself (bekvon) and the Sponge community as a whole. I am one of many developers involved with the SpongeForge projects and have used Residence for years as well as made several add-on plugins for it.
https://github.com/SpongePowered/
https://www.github.com/AlmuraDev/
Our server, Almura is currently using our own fork of Residence in a Cauldron environment. We are preparing to move away from Cauldron starting Jan 2016 and would like to include Residence in that migration.
I am curious if you would be willing to discuss a migration to the SpongeForge eco-system with our developers in our IRC channel Sponge-Dev which we would invite you to if your interested.
Please advise,
Thanks for your time.
02:28:53 [INFO] [Lockette] Enabled link to plugin GroupManager for Groups/Permissions, version 1.7 (Phoenix)
02:28:53 [INFO] [Lockette] Ops file overridden, using linked plugin for admin permissions.
02:28:53 [INFO] [BlockHat] Found Permissions plugin. Using Permissions now.
02:28:53 [INFO] BlockHat version 1.7 by nmc94 is enabled!
02:28:53 [INFO] Preparing start region for level 3 (Seed: -586537219)
02:28:53 [SEVERE] Could not pass event WORLD_LOAD to Residence
java.lang.ClassCastException: com.bekvon.bukkit.residence.listeners.ResidenceEntityListener cannot be cast to org.bukkit.event.world.WorldListener
at org.bukkit.plugin.java.JavaPluginLoader$58.execute(JavaPluginLoader.java:668)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
at org.bukkit.craftbukkit.CraftServer.createWorld(CraftServer.java:585)
at multiworld.data.DataHandler.makeWorld(DataHandler.java:461)
at multiworld.data.DataHandler.load(DataHandler.java:222)
at multiworld.data.DataHandler.(DataHandler.java:62)
at multiworld.MultiWorldPlugin.onEnable(MultiWorldPlugin.java:98)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:968)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169)
at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:348)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:335)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:165)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
02:28:53 [INFO] Preparing start region for level 4 (Seed: -654146182)
02:28:54 [SEVERE] Could not pass event WORLD_LOAD to Residence
java.lang.ClassCastException: com.bekvon.bukkit.residence.listeners.ResidenceEntityListener cannot be cast to org.bukkit.event.world.WorldListener
at org.bukkit.plugin.java.JavaPluginLoader$58.execute(JavaPluginLoader.java:668)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
at org.bukkit.craftbukkit.CraftServer.createWorld(CraftServer.java:585)
at multiworld.data.DataHandler.makeWorld(DataHandler.java:461)
at multiworld.data.DataHandler.load(DataHandler.java:222)
at multiworld.data.DataHandler.(DataHandler.java:62)
at multiworld.MultiWorldPlugin.onEnable(MultiWorldPlugin.java:98)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:968)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169)
at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:348)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:335)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:165)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
02:28:54 [INFO] [MultiWorld] Enabling MultiWorld
02:28:54 [INFO] [MultiWorld] v2.3.0 enabled.
02:28:54 [INFO] WorldEdit 5.0 enabled.
Craftbukkit version git-Bukkit-1.0.1-R1-b1597jnks (MC: 1.0.1) (Implementing API version 1.0.1-R1)
hi can i use your files to port your Residence plugin to Minecraft pocket edition (pocketmine API)?
Don't have permissions to use res and edit it.
if i set:
DefaultGroup: admin
and the moderator have Admin res group, with out this is Default group.
here is res config.yml
http://www.text-upload.com/read.php?id=224548&c=2955877
here is GroupManager permissions file:
http://www.text-upload.com/read.php?id=224553&c=6740743
here is screenshot:
http://store.picbg.net/pubpic/B9/40/275fdfec4308b940.png
and the Permissions group Admin(- '*') have res group: Default
14:34:38 [SEVERE] Could not load 'plugins/Residence.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.VerifyError: class com.bekvon.bukkit.residence.Residence overrides final method setEnabled.(Z)V
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:154)
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:227)
at org.bukkit.craftbukkit.CraftServer.(CraftServer.java:205)
at net.minecraft.server.ServerConfigurationManagerAbstract.(ServerConfigurationManagerAbstract.java:51)
at net.minecraft.server.ServerConfigurationManager.(SourceFile:11)
at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:111)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:398)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:856)
Caused by: java.lang.VerifyError: class com.bekvon.bukkit.residence.Residence overrides final method setEnabled.(Z)V
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:44)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:44)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:143)
... 9 more
I restart the server and the Residence stop working.
I got this error in console:
17.11 16:28:42 [Server] INFO [Residence] - FAILED INITIALIZATION! DISABLED! ERROR:
17.11 16:28:42 [Server] INFO [Residence] Disabling Residence v2.6.6
17.11 16:28:42 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:818)
17.11 16:28:42 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:400)
17.11 16:28:42 [Server] INFO at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:141)
17.11 16:28:42 [Server] INFO at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:258)
17.11 16:28:42 [Server] INFO at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:299)
17.11 16:28:42 [Server] INFO at net.minecraft.server.MinecraftServer.j(MinecraftServer.java:320)
17.11 16:28:42 [Server] INFO at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:254)
17.11 16:28:42 [Server] INFO at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:272)
17.11 16:28:42 [Server] INFO at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
17.11 16:28:42 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:374)
17.11 16:28:42 [Server] INFO at com.bekvon.bukkit.residence.Residence.setEnabled(Residence.java:546)
17.11 16:28:42 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
17.11 16:28:42 [Server] INFO at com.bekvon.bukkit.residence.Residence.onEnable(Residence.java:266)
17.11 16:28:42 [Server] INFO at com.bekvon.bukkit.residence.Residence.loadYml(Residence.java:625)
17.11 16:28:42 [Server] INFO java.lang.NullPointerException
17.11 16:28:42 [Server] SEVERE null
Residences only read global group, its up to residence to determine world and ask for group from world or permissions?
Hi,
I would like to know if it would be possible to add a area system for admin (where the limits are ignored or flags are applied to all players in the area for exemple).
--> I find the flags offered by WorldGuard are not specific enough.
Sorry for my bad english, I'm french (And I used Google Translate so....).
Mr_coco29
If not understandable, I will explain again.
Latest craftbukkit builds deprecate playerchat:
07:51:33 [WARNING] [Residence] "Residence v2.6.3" has registered a listener for org.bukkit.event.player.PlayerChatEvent on method "public void com.bekvon.bukkit.residence.listeners.ResidencePlayerListener.onPlayerChat(org.bukkit.event.player.PlayerChatEvent)", but the event is Deprecated. Server performance will be affected; please notify the authors [bekvon, inorixu, lemon42, nate302, smbarbour, Shayana, t00thpick1].
org.bukkit.plugin.AuthorNagException
at org.bukkit.plugin.java.JavaPluginLoader.createRegisteredListeners(JavaPluginLoader.java:302)
at org.bukkit.plugin.SimplePluginManager.registerEvents(SimplePluginManager.java:507)
at com.bekvon.bukkit.residence.Residence.onEnable(Residence.java:291)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at com.bekvon.bukkit.residence.Residence.setEnabled(Residence.java:1821)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:357)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:263)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:245)
at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:296)
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:275)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:225)
at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:380)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
2012-11-17 03:35:18 [SEVERE] null
java.lang.NullPointerException
at com.bekvon.bukkit.residence.Residence.loadYml(Residence.java:621)
at com.bekvon.bukkit.residence.Residence.onEnable(Residence.java:266)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:374)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
at me.Tonk.ResExtras.ResExtras.onEnable(ResExtras.java:41)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:374)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:270)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:252)
at net.minecraft.server.MinecraftServer.j(MinecraftServer.java:320)
at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:299)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:258)
at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:147)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:398)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:856)
2012-11-17 03:35:18 [INFO] [Residence] Disabling Residence v2.6.6.1
2012-11-17 03:35:18 [INFO] [Residence] - FAILED INITIALIZATION! DISABLED! ERROR:
2012-11-17 03:35:18 [SEVERE] null
java.lang.NullPointerException
at com.bekvon.bukkit.residence.Residence.loadYml(Residence.java:621)
at com.bekvon.bukkit.residence.Residence.onEnable(Residence.java:266)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:374)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
at me.Tonk.ResExtras.ResExtras.onEnable(ResExtras.java:41)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:374)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:270)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:252)
at net.minecraft.server.MinecraftServer.j(MinecraftServer.java:320)
at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:299)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:258)
at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:147)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:398)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:856)
[08:28:12 INFO]: GioGimic issued server command: /res select size
[08:28:12 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'res' in plugin Residence v2.8.4.0
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[PluginCommand.class:1.7.10-1492.152]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:181) ~[SimpleCommandMap.class:1.7.10-1492.152]
at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServer.java:717) ~[CraftServer.class:1.7.10-1492.152]
at net.minecraft.network.NetHandlerPlayServer.func_147361_d(NetHandlerPlayServer.java:1317) [nh.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:1099) [nh.class:?]
at net.minecraft.network.play.client.C01PacketChatMessage.func_148833_a(C01PacketChatMessage.java:38) [ir.class:?]
at net.minecraft.network.play.client.C01PacketChatMessage.func_148833_a(C01PacketChatMessage.java:53) [ir.class:?]
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:244) [ej.class:?]
at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:173) [nc.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:991) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:431) [lt.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:809) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:669) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_51] Caused by: java.lang.NullPointerException
at com.bekvon.bukkit.residence.ResidenceCommandListener.commandResSelect(ResidenceCommandListener.java:786) ~[?:?]
at com.bekvon.bukkit.residence.ResidenceCommandListener.commandRes(ResidenceCommandListener.java:254) ~[?:?]
at com.bekvon.bukkit.residence.ResidenceCommandListener.onCommand(ResidenceCommandListener.java:144) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[PluginCommand.class:1.7.10-1492.152]
... 13 more
Is it exist already? can't find it. I have a bug on my server when residence fails on flatfile i have, when ymlparser don't see any errors.
ERROR: Please help I have an issue add a flag to my Member's Group
CB Version: 860
Residence Version: 2.2
What caused the issue:
I typed the command: "/res gset members_forest Member build true"
members_forest being the residence, Member being the group, and build being the flag
It then returned with the error saying: "Group does not exist"
Plugin that may be cause this is:
I use GroupManager instead of permissions
I you know why this is happening, please help
Can there be some flag or option to allow renter to modify (build and destroy) rented residence for specific residence? There is global setting, but I would like to have some residences modifiable and some not.
It would be beneficial if a residence.admin.move permission were supported to allow players to enter move-restricted residences, similar to what residence.admin.tp does for tp-restricted residences.
It would help our moderators greatly while silently monitoring griefers and cheaters without having to give them full /resadmin privileges, which is just too powerful to give to anyone but a select set of individuals.
A quick peek at the source code has me believing that adding
&& !player.hasPermission("residence.admin.move")
to the move conditional on line 442 of ResidencePlayerListener would accomplish this.
CB version: any 1.2.4 build
2012-03-27 23:36:06 [SEVERE] null
java.lang.NullPointerException
at com.bekvon.bukkit.residence.protection.WorldFlagManager.parsePerms(WorldFlagManager.java:98)
at com.bekvon.bukkit.residence.protection.WorldFlagManager.(WorldFlagManager.java:37)
at com.bekvon.bukkit.residence.Residence.onEnable(Residence.java:206)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
at com.bekvon.bukkit.residence.Residence.setEnabled(Residence.java:1760)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232)
at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:374)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:361)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
2012-03-27 23:36:06 [INFO] [Residence] Enabled! Version 2.5.5 by bekvon
Instead of yml for the residence storage which is prone to breakage and version incompatibilities, store the residence information in a SQL database with support for both MySQL and H2 (file) backends.
Hello, well this error just append when a player logged in, he logged in 200 blocks from the ground and
he could not login, he gave him an error.
While adding Residence-specific support to our permission systems, I've noticed that ResidenceEnter/Leave events do necessarily fire unless a player moves. For example, a player warping (e.g. Essentials /warp) from one residence to another results in no events. Only after a player moves is a ResidenceLeaveEvent fired for the previous residence and a ResidenceEnterEvent fired for the current residence.
Similarly, when a player logs in to a location within a residence, no ResidentEnterEvent (or res message) is fired. Moving about also does not cause it to trigger. The only event received is a ResidenceLeaveEvent after the player leaves the zone or enters a subzone.
For now, we are trapping Login and Teleport events ourselves to force a check against Residence, but it would be cleaner if we didn't have to. I realize that not many plugins use Residence events, but for those that do, this would be beneficial.
When i use "/res list Server Land" it always returns an empty list: http://puu.sh/hetK4/b0c53983e0.png , rather than list the residences currently owned by the server.
InResidence: 'You are standing in Residence %1'
In game i see somethink like this:
You are standing in Residence %1MyHome.house
Hello,
Would it be possible to add the capability to allow / deny teleportation between residences placed in different worlds ?
Hello,
If WorldEdit plugin is present, would it be possible to use its selection tools ? I use WorldEdit CUI and it will be nice to have a complete interaction with it. It works for creation if you use the same selection tool for both WorldEdit and Residence, it will be great if the command /res select residence will reload its selection in the WorldEdit selection buffer to allow visualization.
Can you add price to the residence list when doing /res market list please ?
And list vertically when pagination. Example :
- Myres : 3000$
- NiceHouse : 5000$
...
<<< previous next >>>
Residence is breaking with bukkit builds for 1.2.
Take AE2 Mod as a example, the mod sends custom packets that pypasses cauldron/bukkits event system. Select the quartz wrench item and HOLD LSHIFT TO RIGHT CLICK THE BLOCK OF THIS MOD, this block will drop without any residence permissions.
Why does the code check the parent for containsLoc? I don't see why that check is beneficial at all, and all subzones are guaranteed to be inside of the parents areas anyways, so why?
i think this is hapend when teleport a player from one world to another.
00:25:07 [SEVERE] Could not pass event PlayerMoveEvent to Residence
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:209)
at net.minecraft.server.Packet10Flying.handle(SourceFile:126)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:169)
at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.IllegalArgumentException: Cannot measure distance between spawn and world
at org.bukkit.Location.distanceSquared(Location.java:381)
at org.bukkit.Location.distance(Location.java:364)
at com.bekvon.bukkit.residence.listeners.ResidencePlayerListener.onPlayerMove(ResidencePlayerListener.java:280)
at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
... 11 more
This means server administrators need to manually update the database when a user changes their name.
fix this in source!
MaxUpDown in config must be 128 (not 127)
I also installed the mod, TerraFirmaCraft-0.79.29.922, in my server. Although I set pvp and damage as false, players still can be attacked by other players and monsters. Do you have any idea about it?
Hi, I'm the one who gave the idea and implementation concept on how to do Chunk based residence lookups for locations to t00thpick. However since my fork was from a few years ago and has diverted massively (i'd say mine is like 75% different at this point), we implemented it a little different.
You recently made a change to use containsKey instead of get, which was mostly a good idea, but there are still a few more inefficiencies.
Here is my version of this https://gist.github.com/aikar/ab822955f94ef4380d71
Notes:
With my version, a location lookup is in most cases 1 hashmap lookup (guaranteed), 1 iteration of a single element collection (I could fast track for single elements but losing RandomAccess by using a Multimap hurt me there), and res.containsLoc() check for each res in the chunk.
Feel free to use anything in that file (not that you needed my permission anyways :P)
This was also reported in bukkit ticket system (http://dev.bukkit.org/bukkit-plugins/residence/tickets/495-item-of-item-frames-not-protected/)
I propose to add:
if (ent instanceof ItemFrame) {
if (area == null) {
if (!Residence.getWorldFlags().getPerms(damager.getWorld().getName()).has("build", true)) {
event.setCancelled(true);
}
} else {
if (!area.getPermissions().has("build", true)) {
event.setCancelled(true);
}
}
}
into
Hello,
when the ResidenceCreationEvent cancelled , players still be deducted money.
Hi there, you should make really fast fix of the /res select vert for 1.2.3. It simply just selects the area up to 127..
Hello,
I know this is Probably not an Actual Bug but i cant find anywhere or anyone else that has any info on this.
Thanks for taking the time to read this but i have an Ignore List in the config with a bunch of stuff like wood for the wood farm.
I have a melon farm (This is on 1.0.0) Which no one can till the dirt with, i added melon to the ignore list.
so they can break the lemons they can plant plant fine because i added Seeds to the ignore list.
But they cant till the dirt in the farm after they take the lemon. Any idea what i would need to put in the ignore list to make it work?
Thanks again
Joel
running latest dev build c25cf21
21:16:04 [INFO] This server is running CraftBukkit version git-Bukkit-jenkins-Spigot-98 (MC: 1.3.1) (Implementing API version 1.3.1-R2.1-SNAPSHOT)
21:14:07 [SEVERE] Could not pass event PlayerMoveEvent to Residence org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:213)
at net.minecraft.server.Packet10Flying.handle(SourceFile:136)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:276)
at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
at net.minecraft.server.ServerConnection.b(SourceFile:35)
at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:582)
at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:475)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:407)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
Caused by: java.lang.NullPointerException
at com.bekvon.bukkit.residence.listeners.ResidencePlayerListener.onPlayerMove(ResidencePlayerListener.java:506)
at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330)
... 14 more
There is two BUG:
One is,I select a place,I type "/res select size",it display the right place.
But when I continue to select another place.It still display the first place i select.
This bug only with select place with select tools.Use "/res select [x] [y] [z]" haven't this problem.
The other one is,when i give a player op permission and remove his op permission after serval minuts,he still can distroy the other residence block.Even he relogin,he still can distroy the other residence block or use the chest which in other residence.
Hope you can fix it.Thanks
I am using 1.10.2paperspigot,,worldedit-bukkit-6.1.3,,Residence4.4.1.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.