[SEC/MECH/FUN] PreciousStones - Block Area Proteciton System [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by phaed, Jan 18, 2011.

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

    phaed

  2. Offline

    Buckethead

    so is it possible for a default to op only option and not use a sql server
     
  3. Offline

    CainFoool

    @phaed Yeah fixed :p I noticed you had the Help API in it but never seen the SimpleTeams before :p

    @Buckethead This runs off SQLite, which means it's basically a database in a text file. No configuration needed.

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

    phaed

    I think you are confused. You can ask for all permissions to be given to Op when you don't want to use a permissions plugin. MySQL and SQLite are databases not permissions plugins. Databases hold data, like who owns the blocks and where they are located and what type they are etc. You asking to not to save any data rather to just default to op makes absolutely no sense at all. And like Cain said, you can just use SQLite, which requires no configuration.
     
  5. Offline

    CainFoool

    @phaed have you got AIM or MSN so that I can contact you easier?
     
  6. I installed this and it almost fried my cpu

    5.0.1 and cb953
     
  7. Offline

    phaed

    Did you have PS installed previously? Or is it your first time installing?
     
  8. Offline

    Bronski

    When you say, "before you reinstall," you don't mean on v4 do you? That command doesn't seem to function. I can run it after putting v5 back though, if I get lag (or either way if you want). I believe I only have a few hundred actual pstones deployed on this server. The map is 2 weeks old and I don't have many users.

    EDIT: /psdebug seems to work (no space!). I'm not sure typing it again is toggling if off though (I'm on 4.3). Erm...

    EDIT: On 4.3, /psdebug seems to have lagged me to hell. I had to kill the server :/
     
  9. Offline

    phaed

    Yea, I meant run it on 5. Very weird, /psdebug is not a command. It's /ps debug.
     
  10. Offline

    mrgreaper

    came here as the quarie to run before updating didnt work
    Code:
    #1146 - Table 'minecraft_main.pstone_fields' doesn't exist
    my field is called ps_fields

    then i saw the message about frying cpu ... has that been fixed?

    should be noted that the reason i came to update is it wont let me put pistons in an anti mob field...wierd bug but figured its fixed in the latest version

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  11. Offline

    phaed

    PreciousStones 5 comes with a much simplified DB schema which now supports SQLite. Upon first run it will create the new database tables (pstone_fields, pstone_unbreakables). You will need to run the queries below in order to import the data from your old tables.

    Did you do that?
     
  12. Offline

    mrgreaper

    ah i didnt do that, i read it as before upgrading the quaries needed to be run

    has the cpu issue been resolved? i would really like to know that before i risk updating
     
  13. Offline

    phaed

    Yes, I put the chunk tagging code back, should be the same as 4.3.
     
  14. Offline

    KrypleFyte

    so I am using a WAY older version of your precious stones plugin (3.2.1) back when it was still flatfile. How do I migrate my flat file data from the flatlife to SQLite. I have a large server and can't afford to lose all the data for the precious stones.
     
  15. Offline

    phaed

    Change log
    Version 5.0.2
    • Forrester now terraforms the land around it based on the forrester.fertile-blocks config setting
    • Forrester now adds shrubs and plants if used with the forester-shrubs flag
    • Fixed: not leaving fields on death
    • Fixed: worlds are no longer tagged on load. wholesale tagging is not needed as each chunk is tagged on pstone place.
    • Added: /ps retag. Force retagging of all chunks. should only be needed if you are upgrading from a version prior to tagging.

    Re-Download 5.0.2, backup your old save flatfiles, and drop in the new jar on your server. It should convert the files automatically and then delete them.

    I advise you to use the new config.yml as alot has changed.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  16. Offline

    Deleted user

    Not trying to make it into a competition but is there any reason to use PreciousStones strictly for protection over something such as WorldGuard?
     
  17. Offline

    phaed

    Each has its uses. PS is easy for the players and for the staff as players don't have to ask staff to protect for them, and staff don't have to get bothered by players. Its also a lot less meta and blends into the game better.
     
  18. Offline

    Deleted user

    Yeah, I like the idea of other players being able to protect their areas.

    The only thing that would be nice is if it were possible to make the sponge effect reversed so PVP only worked in those regions.

    A question about the height - for city protection default, would it be 15 up and 15 down? or only 15 up? etc.
     
  19. Offline

    phaed

    That would be the block in the center 7 up, 7 down
     
  20. Offline

    Haha71687

    5.0.2 still disallows sticky pistons.

    I use PS for a self-service protection scheme, where you can buy or mine the power to lock down areas. I run a PvP server and this is probably my favorite plugin along with mcMMO.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  21. Offline

    phaed

    Re-Download
     
  22. Offline

    Haha71687

    Is there any way to disallow the owner from placing or destroying in a city protection field? I can sorta get what I want with the no-owner tag but the field is unnameable now. All I want to do is make a block that locks down an area to everybody, including the owner, but otherwise acts as a city protection field with welcome messages and a name.
     
  23. Offline

    phaed

    Do not convert yet. Wait for next release.
     
  24. Offline

    HotelErotica

    @phaed
    Did the super high CPU bug get squished yet? 5.0.1 still had it in there, I have about 950~ stones and it pretty much locks up the server when it starts.
     
  25. Offline

    Bronski

    It seems fine for me now. I'll post back if anything happens :D

    I broke a protection block with superpickaxe (worldedit) and it didn't register. I then did /ps clean and got 1 result. /ps info verifies it's gone. Then I did /ps save and when I do /ps info to confirm it's still gone, it's not. Suddenly it sees the block again even though it's not there. The /ps save actually undoes the cleaning seemingly. This exact behavior I had previously on 4.x.

    5.0.2/mysql/200ish pstones

    Show Spoiler
    bypass-blocks:
    - 39
    - 40
    - 51
    - 59
    unbreakable-blocks:
    - 56
    unprotectable-blocks:
    - 54
    - 58
    - 61
    - 62
    tool-items:
    - 269
    - 270
    - 271
    - 273
    - 274
    - 275
    - 277
    - 278
    - 279
    - 284
    - 285
    - 286
    - 290
    - 291
    - 292
    - 293
    - 294
    cloak:
    cloakable-blocks:
    - 54
    - 58
    - 61
    cloak-blocks:
    - 1
    - 2
    - 3
    - 4
    - 5
    - 7
    - 17
    - 20
    - 43
    - 45
    - 49
    - 60
    - 78
    - 80
    - 82
    - 87
    - 88
    viewing-radius:
    min: 5
    max: 20
    default: 7
    force-field-blocks:
    - title: Creature Repeller
    block: 30
    radius: 10
    prevent-mob-spawn: true
    prevent-animal-spawn: true
    no-conflict: true
    - title: Glow of Life
    block: 89
    radius: 5
    slow-heal: true
    no-conflict: true
    - title: Large Protection Zone
    block: 57
    radius: 40
    custom-height: 40
    prevent-fire: false
    prevent-place: true
    prevent-destroy: true
    prevent-explosions: true
    prevent-unprotectable: false
    prevent-flow: true
    nameable: true
    welcome-message: true
    farewell-message: true
    - title: Medium Protection Zone
    block: 41
    radius: 20
    custom-height: 40
    prevent-fire: false
    prevent-place: true
    prevent-destroy: true
    prevent-explosions: true
    prevent-unprotectable: false
    prevent-flow: true
    nameable: true
    welcome-message: true
    farewell-message: true
    - title: Small Protection Zone
    block: 42
    radius: 10
    custom-height: 20
    prevent-fire: false
    prevent-place: true
    prevent-destroy: true
    prevent-explosions: true
    prevent-unprotectable: false
    prevent-flow: false
    nameable: true
    welcome-message: true
    farewell-message: true
    - title: Low Wide Protection Zone
    block: 21
    radius: 10
    custom-height: 15
    prevent-fire: false
    prevent-place: true
    prevent-destroy: true
    prevent-explosions: true
    prevent-unprotectable: false
    prevent-flow: true
    nameable: true
    welcome-message: true
    farewell-message: true
    - title: Mini Protection Zone
    block: 73
    radius: 3
    custom-height: 10
    prevent-fire: false
    prevent-place: true
    prevent-destroy: true
    prevent-explosions: true
    prevent-unprotectable: false
    prevent-flow: true
    nameable: true
    welcome-message: true
    farewell-message: true
    log:
    entry: false
    fire: true
    pvp: false
    place: false
    destroy: false
    destroy-area: false
    unprotectable: true
    bypass-pvp: true
    bypass-delete: true
    bypass-destroy: true
    bypass-unprotectable: true
    conflict-place: true
    bypass-place: false
    notify:
    place: true
    destroy: true
    bypass-place: true
    bypass-destroy: true
    bypass-unprotectable: true
    bypass-pvp: false
    warn:
    entry: true
    fire: true
    pvp: true
    place: true
    destroy: true
    destroy-area: true
    unprotectable: true
    instant-heal: true
    slow-heal: true
    slow-damage: true
    give-air: true
    launch: true
    cannon: true
    mine: true
    fast-damage: false
    settings:
    public-block-details: true
    allowed-can-break-pstones: true
    sneaking-bypasses-damage: true
    drop-on-delete: true
    disable-alerts-for-admins: false
    disable-bypass-alerts-for-admins: true
    off-by-default: false
    lines-per-page: 12
    saving-frequency-minutes: 1
    visualization:
    block-type: 20
    seconds: 15
    end-on-player-move: true
    forester:
    interval-secs: 1
    fertile-blocks:
    - 2
    - 3
    - 13
    - 87


    Show Spoiler
    database:
    username: bronski
    isolation: SERIALIZABLE
    driver: com.mysql.jdbc.Driver
    password: abcdefg
    url: jdbc:mysql://someserver.com:3306/database
    settings:
    update-folder: update
    spawn-radius: 0
    aliases:
    icanhasbukkit:
    - version


    I just found this in my server log, maybe it was around the time this was happening:

    Show Spoiler
    2011-07-05 08:06:38 [SEVERE] Could not pass event PLAYER_INTERACT to PreciousStones
    java.lang.NullPointerException
    at net.sacredlabyrinth.Phaed.PreciousStones.listeners.PSPlayerListener.onPlayerInteract(PSPlayerListener.java:54)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:307)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:139)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:780)
    at net.minecraft.server.Packet18ArmAnimation.a(SourceFile:35)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-05 08:06:42 [SEVERE] Could not pass event PLAYER_INTERACT to PreciousStones
    java.lang.NullPointerException
    at net.sacredlabyrinth.Phaed.PreciousStones.listeners.PSPlayerListener.onPlayerInteract(PSPlayerListener.java:54)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:307)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:139)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:780)
    at net.minecraft.server.Packet18ArmAnimation.a(SourceFile:35)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)


    Oh, VoxelSniper is another plugin people might use to break blocks in a non-standard way, if you're trying to code for those exceptions now. That's not what I used here (but I could have :)).

    And yeah, I cannot seem to get rid of this phantom block. I tried /ps clean and then just waiting (not doing the follow-up /ps save) and it came back on its own. I think based on my history with this that if I reload it will suddenly be ok, or will let me fix it with clean/save anyway. I'm not sure what goes wrong to land me in this situation but maybe that error will help you.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  26. Offline

    KrypleFyte

    Alright I will wait, let me know when I should.
     
  27. Offline

    philulrich

    Hey, is there a way to consolidate names? Like using 20 pstones named "spawn" as one big forcefield?
     
  28. Offline

    phaed

  29. Offline

    philulrich

    I haven't upgraded yet, is this a new feature? My 4.x(forget specific version) isn't doing this ATM
     
  30. Offline

    Shalobee

    I am still noticing high cpu usage with 5.0.2 There is definitely a noticeable difference between running 5 vs 4.x whatever the latest was. when i stop my server with 5.0.2 it takes forever for everything to stop but when i switch back its back to being quick. I also see a bunch of can't keep up messages on 5 where 4 didn't. 4 (the newest) was conflicting with FalseBookBlocks.jar where 5 doesn't but 5 seems to mess up Citizens 1.9b and FalseBookExtra.jar this time. anyone else see the same?
     
  31. Offline

    HotelErotica

    I think i found a bug Glow of Life, seems to be stopping creeper explosions not sure if this was intended or not.

    Code:
    -   title: Glow of Life
        block: 89
        radius: 4
        slow-heal: true
        no-conflict: true
     
Thread Status:
Not open for further replies.

Share This Page