Giter Site home page Giter Site logo

residence's People

Contributors

ayacze avatar bekvon avatar darker avatar dartcz avatar dockter avatar filipsohajek avatar gaetleba avatar glguy avatar gsvalore avatar inorixu avatar javacraft avatar kilandor avatar moo0 avatar nate302 avatar ryall avatar sejsel avatar silvinios avatar smbarbour avatar tomylobo avatar xyberviri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

residence's Issues

Residences + Legacy PEX

Residences only read global group, its up to residence to determine world and ask for group from world or permissions?

Could not pass event PlayerMoveEvent to Residence

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

Admin area

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.

Multiworld error pls check it, tnx

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)

Residence 2.6.6 not working with craftbukkit 1.4.4-R0.1

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

Migrate from now-deprecated PlayerChatEvent to AsyncPlayerChatEvent

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)

Resadmin delete fails when confirmation system used

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.

Residence Port to SpongeForge

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.

Residence cannot block interact event of Mod item

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.

Issues while selecting.

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.

Improvements to lookup performance

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.

Code: https://github.com/bekvon/Residence/blob/master/src/com/bekvon/bukkit/residence/protection/ResidenceManager.java#L53-L63

  1. Doing 2 get(world) lookups. Should store a reference to first and reuse.
  2. Using .containsKey on world. I would expect nearly all calls to this method to return a world, by doing containsKey followed by get() you are hashing twice. the containsKey first is only beneficial if most cases it DOESN'T contain the key, but in this case the majority will.
  3. Storing a String instead of the Residence object itself, then looking it up. I haven't fully inspected the code for the latest version, but surely the entire object isn't being recreated anywhere? Storing the object itself instead of a name and looking it up saves yet another hashmap lookup.

Here is my version of this https://gist.github.com/aikar/ab822955f94ef4380d71
Notes:

  1. My ClaimedResidence is renamed Residence
  2. The UUID Map I have has nothing to do with Player UUID's. I assign every residence a UUID just to have a distinct identifier for every residence object instead of using the name, as a name can change (in the same way we had to do it for players =P)
  3. I extend Location instead of completely new class to simply make use of its hashCode/equals but I do like the simpler hash code you have as locations does stuff that will never be needed.
  4. I use a Multimap to keep the code super simple. If you want to keep the world based bucketing, you can use a Guava Table: http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/collect/Table.html
  5. Since iterating Residences by world is a very uncommon task (namely saving), I simply store world as a separate collection.
  6. Setting 2100 initial capacity to improve server startup performance as I'm guaranteed to have ~2000 residences per server.

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)

Residence error, please help!

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

PVP and damage flags don't work

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?

Teleport between worlds

Hello,

Would it be possible to add the capability to allow / deny teleportation between residences placed in different worlds ?

Mysql version

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.

Allow edit in rented residence

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.

Select Tools BUG at 4.4.1.0

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

dont have permissions to use res

Don't have permissions to use res and edit it.

if i set:

The default group to use if Permissions fails to attach or your not using Permissions.

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

Use SuperPerms Permission Nodes instead for Groups

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

UUID Code: Massive Performance Risk / Bug

Re: https://github.com/bekvon/Residence/blob/master/src/com/bekvon/bukkit/residence/Residence.java#L810-L825

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()

Can't figure out the problem

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

Support Databases (MySQL / H2)

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.

1.7.10 Issue

[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

language

InResidence: 'You are standing in Residence %1'

In game i see somethink like this:
You are standing in Residence %1MyHome.house

World Flag Manager

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

Error adding group flag for members

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

Reupload documentation

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?

Res Market List : add price ?

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

WorldEdit compatibility

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.

Override -move Flag

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.

Error: teleport a player from one world to another

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

Enabling in 1.4.4

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)

Grass does not spread

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?

Flag Request: Passive Mob Protection

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

EntityDamageByEntityEvent Doesnt implement case for item frames, That bukkit now uses to check item frames.

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

if (event instanceof EntityDamageByEntityEvent) {

ResidenceEnter/Leave Events Not Firing Immediately Upon a Successful Login or Teleport

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.

Can Not Till Dirt With A Hoe

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

MaxUpDown

fix this in source!

MaxUpDown in config must be 128 (not 127)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.