Solved WorldGuard Entities

Discussion in 'Bukkit Help' started by Dark_Serpent, Jul 17, 2016.

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

    Dark_Serpent

    Quick question about WorldGuard: WorldGuard finds entity values within 'org.bukkit.entity.EntityType'.

    Would it be possible to have it detect entities outside that?

    To make it more clear, WorldGuard provides support for Bukkit mods, but non-Bukkit mods rarely have support. The entities still exist, just within the mod files itself, rather then where WorldGuard searches for the mobs.

    If I want to add a 'deny-spawn' flag, but can't target the entity, is there a way to solve this? Or is it a matter of requesting the creator to add support for Bukkit?

    Apologies if this is in the wrong sub-forum.

    EDIT: I realize Essentials does this too with '/spawnmob' and '/killall'
     
  2. Offline

    Rayzr522

    How are you planning on installing Forge mods and Bukkit plugins simultaneously? The only ways I know of are Cauldron (no longer developed), and Sponge, but Sponge (I think) doesn't use the Bukkit API for plugins. They have to be written with the Forge API.

    Responding to the question: I notice now that they aren't very flexible, although I've never worried about it because I don't know of a way to install Forge mods and Bukkit plugins. As I said, the only way I can think of doing it is Sponge, and that requires plugins written in the Forge API (I believe).
     
  3. Offline

    Dark_Serpent

    I use previously developed version of Cauldrons if I'm looking for using plugins and mods simultaneously, and while it's no longer being developed, the previous versions remain accessible.

    In any case, I was just looking for the theoretical probability of re-routing where plugins detect their entities. Whether it's possible or not, etc. I wasn't actually looking to modify a current plugin to suit these needs.

    Your answer gave me a lot of insight though, so thank you. I managed to do some research about Sponge.
     
  4. Offline

    Rayzr522

    You're welcome! Sorry I couldn't help you with the original question, but hopefully you find out how to do what you need.

    I wish there was a way of re-routing how the plugins detect the entities. The only thing I could think of would be to (somehow) register the entity as an EntityType, except that won't even work in all cases. For example, Essentials has it's own Entities class which has hardcoded all the entities in the game, so that still wouldn't unless you could find some ridiculous way to do it with reflection.

    Let me know if you need anything else :)

    If you do end up sticking with cauldron, I can help you with whatever you need since I've been doing Bukkit programming for a couple years now, and I've been doing Java for... idk, I think like 3 years or so. I assume from what you say that Cauldron is written on top of the Bukkit API?
     
  5. Offline

    Dark_Serpent

    I believe so, although I can't find any citations, but since Sponge is loosely based off Cauldron, and it has Bukkit (like) API, it would be safe to assume that Cauldron runs on top of it as well (although I can't check atm).

    Either way, don't quote me, I could be completely out of the ball park on this one.
     
  6. Offline

    Rayzr522

    Well I just quoted you. Literally :p

    Anyways, from what I know Sponge doesn't have anything like the Bukkit API... I think it's entirely built upon the Forge API. I do believe the Cauldron was built on the Bukkit API though.

    Glad I could be of service, just send me a message if you need any more help :D
     
Thread Status:
Not open for further replies.

Share This Page