[FUN/TP] Tomb 0.7 - Make people remember you after your death[1000] [Permissions][All Economy]

Discussion in 'Inactive/Unsupported Plugins' started by Dark_Balor, Apr 27, 2011.

  1. Offline

    Dark_Balor

    Tomb - A sign that count your deaths and the last "thing" that killed you :
    Version : 0.7

    Tomb is a very little and light plugin that allow your user to set a tomb. A tomb is just a sign represent the TombStone where there is 3 things : The name of the player, the number of times he died and what was the last cause.


    Features :
    • Tomb can be use as teleporter to the location where the user die (only by the owner of the tomb)
    • Tomb are automatically named (look in section How to set a Tomb).
    • Only admin can create a tomb for an another user (using Permissions)
    • Tomb are automatically updated when you die
    • You can set more than 1 tomb but ... (look Know issues)
    • Only admin and owner of the tomb can destroy the tomb
    • Tomb are persistent upon server restart
    • Right click on the tomb teleport you to your death location (can be disabled in the config)
    • You can set the tomb to be your respawn point (can be disabled in the config)
    • all Economy with Register made by @Nijikokun
    • Permissions support
    Know issues:

    If you have more than 1 tomb, the sign is not updated ON THE CLIENT, on the server there is no problem. That mean, for other people near the Tomb the sign is not updated unless they reconnect, die or quit the zone.

    It don't happen if you just have 1 tomb.

    With other respawn plugin, if you activated the respawn on the Tomb it will override (or be overrided by) every other respawn plugin.

    Download Tomb

    [​IMG]

    Source Code

    How to set a Tomb (open)

    1) Create a new Sign with first line [Tomb] (if you are an admin, you can set the second line to the player name)

    [​IMG]
    2) Automatically the sign will take your name
    [​IMG]
    3) And when you die ... MAGIC
    [​IMG]



    Permissions:
    Code:
    tomb.admin -  mean you can set tomb for other (just set the second line of the sign to the name of the player) and you can destroy every tomb.
    tomb.create -  Allow the user to create tombs.
    tomb.free - Everything is free when using iConomy
    tomb.tp - Allow the user to use the deathTP, useful when in config allow-tp = false.
    
    Todo (open)

    1. iConomy support (for tomb and tp)
    2. Permissions node for tomb creation
    3. ideas ?




    Config file (open)

    #activate iConomy
    use-iConomy: true

    #price for creating a tomb
    creation-price: 10.0

    #price for tp to death location
    deathtp-price: 50.0

    #after tp, reset the loc to avoiding the use of the tomb as a waypoint
    reset-deathloc: true

    #Set the maximum of tombStone a player can have, 0=infinite
    maxTombStone: 0

    #Allow the users to use the deathTp (right click on the tomb)
    allow-tp: true

    #Use the tomb as respawn point
    use-tombAsSpawnPoint: true

    #To change the keyword used to detect that the sign is a tomb
    TombKeyword: '[Tomb]'

    #Cooldown in MINUTES before you can reTP to your death location.
    cooldownTp: 5.0

    #Number of death before destruction of every tomb of the player
    # without resetting the counter. If set to 2, every 2 deaths, the tombs are destroyed. (Sign is dropped) 0 = Disabled
    maxDeaths: 0

    #When a tomb is destroyed, the respawn point is reset.
    reset-respawn: false



    Locale File :
    locale.yml in the plugin folder represent the locale file it's generated while the first launch of the plugin (to be true when the first player having a tomb die). You can customize the death's text. Only limit : not more than 18 characters because it's the max for a sign's line.

    THE LOCALE FILE MUST BE IN UTF-8 !
    English Local File : locale.yml (open)

    Code:
    locale:
        block_explosion:
        - BOUM
        - TNT
        - Dynamite
        pvp:
        - Killed by %k
        pigzombie:
        - Zombie-Pig
        void:
        - Became Void
        - End of World
        unknown:
        - Unknown
        creeper:
        - Ksss BOUM
        - CREEEEPPPPERRR
        - Creeper Lover
        skeleton:
        - Skeleton Bow
        - Arrow in Head
        suffocation:
        - Suffocated
        - Sand's breath
        - Sand worm
        contact:
        - Cactus
        - Poked a Cactus
        - Hug a Cactus
        fire:
        - Toasted
        - Burned
        - Fire! Fire!
        fire_tick:
        - Toasted
        - Burned
        - Fire! Fire!
        ghast:
        - In Nether
        - Ghast
        entity_explosion:
        - BOUM
        - TNT
        - Dynamite
        slime:
        - Splouched
        - Slime won
        lighting:
        - By Zeus
        - By Thor
        - Lighting
        wolf:
        - Eat by Wolf
        - Wolf meal
        - Wolf lunch
        lava:
        - Swim in lava
        - Now obsidian
        zombie:
        - L4D
        - Braaaiiin
        - Zombie rules
        fall:
        - Tried to fly
        - Love the ground
        spider:
        - Spider venom
        - Arachnophobia
        drowning:
        - Has drowned
        - Love fishing
        - Drunk the sea
    
    

    FRENCH Local File : locale.yml (open)

    Code:
    locale:
        block_explosion:
        - BOUM
        - TNT
        - Dynamite
        - Explosé
        - Piégé
        pvp:
        - Tué par %k
        - %k le tueur
        pigzombie:
        - Zombie du Nether
        void:
        - Visite du néant
        - Visiteur du néant
        - A vu le vide
        - Voyageur du vide
        - A vu la Matrice
        unknown:
        - R.I.P.
        - Raison inconnue
        creeper:
        - Ksss BOUM
        - CREEEEPPPPERRR
        - Calin de Creeper
        skeleton:
        - Squelette
        - Flèche
        - Empalé
        suffocation:
        - Etouffé
        - Respire le sable
        - Enseveli
        - Enterré vivant
        contact:
        - Cactus
        - Piqué par Cactus
        - Calin de Cactus
        fire:
        - Cramé
        - Brûlé vif
        - Incendié
        - Rôti
        - Grillé
        - Rissolé
        - Est un toast
        - Est à point
        - Est cuit
        - Est bien cuit
        fire_tick:
        - Cramé
        - Brûlé vif
        - Incendié
        - Rôti
        - Grillé
        - Rissolé
        - Est un toast
        - Est à point
        - Est cuit
        - Est bien cuit
        ghast:
        - Âme du Nether
        - Ghast
        entity_explosion:
        - BOUM
        - TNT
        - Dynamite
        - Explosé
        - Piégé
        slime:
        - Splouch
        - Câlin de Slime
        - Goûté de Slime
        lighting:
        - Courroux de Zeus
        - Colère de Thor
        - Eclair
        - Orage
        - Electrifié
        - Coupe d'enfer
        - Electricité
        - Benjamin Franklin
        wolf:
        - Mangé par un loup
        - Goûter de loup
        - Loup
        - Par les loups
        lava:
        - Bain de lave
        - Obsidienne-isé
        - Bain chaud
        - Baignade au magma
        zombie:
        - L4D
        - Ceerveeeaux
        - Zombiefié
        - Saaaannng
        - Mangé
        - Dévoré
        fall:
        - Ne vole pas
        - Aime le sol
        - Cassé les dents
        - Test de gravité
        - Newton
        spider:
        - Venin d'araignée
        - Est arachnophobe
        - Arachnophobie
        - 8 pattes
        - Est un cocon
        drowning:
        - A bu la tasse
        - A respiré l'eau
        - A bu l'eau de mer
        - Est humide
        - Coulé
    

    GERMAN Local File : locale.yml (open)

    Code:
    locale:
        block_explosion:
        - BO00M
        - TNT
        - Dynamit
        pvp:
        - Getötet von %k
        pigzombie:
        - Zombie Schwein
        void:
        - Wurde unwichtig.
        - Ende der Welt
        unknown:
        - unbekannt
        creeper:
        - SSSSSSSS BOOM
        - CREEEEPPPPERRR
        - Creeper Liebender
        skeleton:
        - Skeleton Bogen
        - Pfeil in Kopf
        suffocation:
        - erstickt
        - Sand im Atem
        - Sand Wurm
        contact:
        - Kaktus
        - Schlug Kaktus
        - Umarmte Kaktus
        fire:
        - Toasted
        - Verbrannt
        - Feuer! Feuer!
        fire_tick:
        - Toasted
        - Verbrannt
        - Feuer! Feuer!
        ghast:
        - In der Hölle
        - Geist
        entity_explosion:
        - BO00M
        - TNT
        - Dynamit
        slime:
        - Geschleimt
        - Slime gewann
        lighting:
        - Von Zeus
        - Von Thor
        - Von einem Blitz
        wolf:
        - Vom Wolf gegessen
        - Wolfs Mahl
        - Wolfs Essen
        lava:
        - Schwom in lava
        - Nun Obsidian
        zombie:
        - L4D
        - GEEEEHIRN
        - Zombie FTW
        fall:
        - Flog zu hoch
        - Liebte den Boden
        spider:
        - Spinnengift
        - Arachnophobie
        drowning:
        - Ist ertrunken
        - Liebte die Fische
        - Trank den See
    

    Credit :
    @lonelydime for his code of DeathTP+. Used to determine what killed you. (DeathListener)
    @[F(r)iend] for the concept : http://forums.bukkit.org/threads/graveyard-log-player-deaths-concept-image.12895/#post-212469
    @Sphax for the French Locale File.
    @Nijikokun for Register
    @an0x for German Locale File.

    Changelog
    Version 0.7
    • [FEATURE] reset-respawn in config (see config)
    • [FEATURE] maxDeaths in config : you can set a limit of deaths before destroying the tomb.
    • [OPTIMIZATION] If the player have already a tomb (or had one), and you are the admin when you adding a tomb for that player, you can type his name without needing to have the right case or the right number of letter : example : if you have a player Test that have already a tomb, just typing : tes in the second line of the sign will be enough.
    • [BUG FIX] With multiWorld, the plugin is now loader AFTER MultiVerse, to avoid some problem with tomb in world that aren't loaded
    Version 0.6.2

    • [minor CHANGE] To avoid collision with other eConomy plugins
    Version 0.6.1

    • [Possible BUG FIX] Of an update problem when more than 1 sign.
    Version 0.6

    • [FEATURE] Now work with all Economy Plugins (Bose, iConomy, Essentials)
    Old ChangeLog (open)


    Version 0.5.9
    • [OPTIMIZATION] When disabling the plugin.
    Version 0.5.8

    • [OPTIMIZATION] Some code optimization.
    Version 0.5.7

    • [OPTIMIZATION] Some code improvement (minor)
    • [LOG] Logger added to have more precise information about what happen.
    • [CHANGE] When you are an admin and add a tomb for a player, the player MUST be connected.
    • [BUG FIX] Rare NPE.
    Version 0.5.6

    • [BUG FIX] Corrected a rare NPE.
    • [OPTIMIZATION] Better "destruction" of the plugin when we disable it.
    Version 0.5.5

    • [OPTIMIZATION] Some optimization for the sign update when you die
    Version 0.5.4 (END OF SUPPORT OF iConomy 4.6.5)


    • [BUG FIX] Now the plugin detect when a Wolf killed you
    • [OPTIMIZATION] Some code optimization about permission and Tomb that are destroyed by something else then a Player.
    Version 0.5.3

    • [CHANGE] new version of iConomy : works with 5.0 for 4.6.5 use the OLD version of the plugin
    Version 0.5.2

    • [minor CHANGE] Added seconds to the death tp cooldown.
    Version 0.5.1

    • [STRING] Changed a string to avoid problem with girls xD
    • [OPTIMIZATION] Some minor code optimization to avoid some problem with creation of the tomb.
    Version 0.5 (MAJOR RELEASE)
    • [ISSUE] The only issue (Update issue) is now completely gone :D. You can have 5,10,etc ... tomb without any sync problem :)
    • [FEATURE] The [Tomb] text is now customizable you can change it by what you want in the config
    • [FEATURE] Added a cooldown for the death tp (see config file)
    • [FEATURE] Added the possibility to use the tomb as Respawn Point :)
    • [OPTIMIZATION] Some code optimization
    Version 0.4

    • [MAJOR BUX FIX] Tomb creation was buggy.
    Version 0.3.7

    • [OPTIMIZATION] Some code optimization when the sign is destroyed by something else that a player (or when the surface were it is is destroyed)
    • [BUG FIX] Rare NPE with setLine
    Version 0.3.6

    • [possible BUG FIX] When the server saving the sign, it was crashing.
    Version 0.3.5

    • [FEATURE] Possibility to set a max number of tombstone
    • [ADD] maxTombStone in the configFile
    Version 0.3.4 (unreleased)

    • [FEATURE] Allow tp
    • [PERM] allow tp
    • [ADD] Config param allow-tp
    Version 0.3.3 (unreleased)

    • [MAJOR BUG FIX] Correction of a bug in the save system. When deathlocation was null, it was throwing an Exception.
    Version 0.3.2

    • [BUG FIX] PvP glitch corrected. Now the %k is replaced by the killer's name.
    Version 0.3.1

    • [MAJOR BUG FIX] When something destroy the tomb it wasn't registered. Now it is. And when reloading the tomb (server restart) all tomb info was lost !
    Version 0.3

    • [FEATURE] iConomy support
    • [ADD] Config file
    • [PERM] tomb.free to have everything free when using iConomy
    Version 0.2

    • [FEATURE] Added a locale file automatically generated when you launch the plugin
    • [FEATURE] Auto-save when the server save his world
    • [PERM] Added new Permissions Node : tomb.create
    Version 0.1

    • [RELEASE] Public release
     
  2. Offline

    an0x

    Wow awesome <3 please add boseconomy support than its my dream plugin ^^ if you want i can translate it to german.
     
  3. Offline

    Dark_Balor

    It's already works with boseconomy ;)

    German locale ? why not :)
     
  4. Offline

    compgurusteve

    Anyway to automatically create a tombstone when the person dies at their death location?
    Also I'm checking to see if it's really your plugins problem but mobs/animals quite spawning not sure why.
     
  5. Offline

    Dark_Balor

    Not a problem with mine plugin, I have all the monster on my server.

    For the auto-spawn tomb, I'll see what I can do
     
  6. Offline

    compgurusteve

    Yeah, found the mob spawn problems, completely different plugin effecting it. :)

    Oh and to elaborate more on the auto-spawn:
    [death sign]
    "Here lies (playername)"
    "Date of last death: [time]"
    "Total Deaths"
    "whateverelse you can think of"

    in this formation:
    [deathsign]
    [single-slab] [single-slab] [double-slab]

    What do you think?
     
  7. Offline

    an0x

    Here the German locale i hope someone find this usefull ^^
    Code:
    locale:
        block_explosion:
        - BO00M
        - TNT
        - Dynamit
        pvp:
        - Getötet von %k
        pigzombie:
        - Zombie Schwein
        void:
        - Wurde unwichtig.
        - Ende der Welt
        unknown:
        - unbekannt
        creeper:
        - SSSSSSSS BOOM
        - CREEEEPPPPERRR
        - Creeper Liebender
        skeleton:
        - Skeleton Bogen
        - Pfeil in Kopf
        suffocation:
        - erstickt
        - Sand im Atem
        - Sand Wurm
        contact:
        - Kaktus
        - Schlug Kaktus
        - Umarmte Kaktus
        fire:
        - Toasted
        - Verbrannt
        - Feuer! Feuer!
        fire_tick:
        - Toasted
        - Verbrannt
        - Feuer! Feuer!
        ghast:
        - In der Hölle
        - Geist
        entity_explosion:
        - BO00M
        - TNT
        - Dynamit
        slime:
        - Geschleimt
        - Slime gewann
        lighting:
        - Von Zeus
        - Von Thor
        - Von einem Blitz
        wolf:
        - Vom Wolf gegessen
        - Wolfs Mahl
        - Wolfs Essen
        lava:
        - Schwom in lava
        - Nun Obsidian
        zombie:
        - L4D
        - GEEEEHIRN
        - Zombie FTW
        fall:
        - Flog zu hoch
        - Liebte den Boden
        spider:
        - Spinnengift
        - Arachnophobie
        drowning:
        - Ist ertrunken
        - Liebte die Fische
        - Trank den See
     
  8. Offline

    compgurusteve

    @Dark_Balor Also an interesting idea would to have zombies spawn from those graves at a certain time during the night.
     
  9. Offline

    GoldenX

    Tombs created by Ops for the others players don't work on my server. I have to break the sign and place again the tomb in order to update it.
    There is only one tomb per players. Local file is in UTF-8 format. I use a multi-world server but tombs are placed only on the principal world.
     
  10. Offline

    Dark_Balor

    I'm aware of that bug ... it's a problem with the vanilla minecraft (like said in the recommand build : http://forums.bukkit.org/threads/recommended-build-1000.26790/ )

    When I update the sign, I check first if the sign is still a sign (in the case of the sign was destroyed by an explosion, a creep, etc ...) sometime with no apparent reason the server say that the sign is not a sign ... and I can't update it, just destroy it ...
     
  11. Offline

    Stormbow

    There seems to be a major bug in this which affects all signs that are broken. Two items are dropped: the sign as a useable item we all know, and a two dimensional plank that, when used, becomes a placed sign (bypassing the text-entering stage of sign placement). Breaking either version of a sign results in a normal sign and another plank being dropped.

    Note: This means all signs, not just the [Tomb] sign.'

    This is actually a bug in the LavaFurnace Plugin. I just tracked it down to LavaFurnace being the culprit. Sorry for the confusion.
     
  12. Offline

    SkullM4sher

    That's a funny plug-in I always dream to have a cemetery on my server !
     
  13. Offline

    Dimochka

    There should be an option if there's a chest at your tomb site it will get your stuff when you die. This is for realistic servers
     
  14. Offline

    Dark_Balor

    There is already a plugin that doing it :)

    I'm sorry for the moment I don't have time form new features, just maintaining the plugin.
     
  15. Offline

    Stormbow

    Corrected my previous post. The cause of the double drops is LavaFurnace, not Tomb.
     
  16. Offline

    Schocker

  17. Offline

    diamaunt

    I think I'm having this problem, frequently. is there anyway to recheck? I get these lines occasionally when people log in:
    Code:
    2011-08-21 17:15:33 [SEVERE] Tomb of diamaunt Block :(world, 294, 76, 249) is not a sign it's a AIR
    2011-08-22 20:00:34 [SEVERE] Tomb of Spineshank Block :(world, 2003, 73, -241) is not a sign it's a AIR
    seems like they all stop working, I've tried making them freestanding, or stuck on walls. any ideas?
     
  18. Offline

    Dark_Balor

    It's something about the chunk management of minecraft ... don't know why but some time the chunk where the tomb is, is unloaded. When the plugin check the block in that chunk, it's returning an AIR block without a sign to update ...

    I'm thinking this is a Vanilla bug ...
     
  19. Offline

    diamaunt

    Is there any kind of debugging or anything I could forward to you that would help you?

    it seems to happen right after login of people, should it be updating the sign at that time?
     
  20. Offline

    everhaunted

    can you please get support for iconomy 6?
     
  21. Offline

    IronPython

    not sure why this is but i cant seam to set up a tomb sign, i have pemissions set right, i changed the config to work the way i wanted i set it up as a Admin and a OP but no mater what i do all i end up getting is a sign that says [tomb] i dont get any errors and bukkit list that it it was set up right

    i did tell it not to use iconomy but that should not mater as my server has it i just didnt want it charging you to set up a tomb as only admins will set them up. but if you have any ideas what i might be missing let me know else ill just keep checking to see when u update and hope that version works for my server ^.^

    P.S. i am useing bukkit 1181
     
  22. Offline

    Nikademus

    Working just fine for me in #1185 with no permissions.
     
  23. Offline

    Aeron

    I am so tired of trying this to work with any Permission plugins, like I have tried so many variations - with PermissionsEX (PEX), PermissionsBukkit, Permissions, all give the same result, no matter what plugin i try to use:

    You don't have the permission to do that (tomb.create)
    or
    You don't have the permission to do that (tomb.admin)
    or both

    Using CB #1185
     
  24. Offline

    Aeron

    I got this working with bPermissions, though I get this error in console despite the fact, that the plugin works:
    Code:
    [SEVERE] Could not pass event PLUGIN_ENABLE to Tomb
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
        at be.Balor.register.payment.methods.iCo4.isCompatible(iCo4.java:55)
        at be.Balor.register.payment.Methods.createMethod(Methods.java:55)
        at be.Balor.register.payment.Methods.setMethod(Methods.java:94)
        at be.Balor.Listeners.PluginListener.onPluginEnable(PluginListener.java:57)
        at org.bukkit.plugin.java.JavaPluginLoader$46.execute(JavaPluginLoader.java:562)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:927)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
    And it spams it 3-4 times when launching the server.
    Using CB1185
     
  25. Offline

    codename_B

    That's an iconomy error (or a register error) rather than a bPermissions error.
     
  26. Offline

    Dark_Balor

    I'll update the register API to make iCononmy 6.X works :)

    And maybe add support for PermissionsEX and Super Perm.
     
  27. Offline

    sorklin

    Any update yet for iconomy 6?
     
  28. Offline

    Dark_Balor

    Not for now ... I have some problem with the last Register API.
     
  29. Offline

    aerts1980

    VERY good plugin! TY much!

    Maybe idea to put in:

    /Reset kill counter command ?

    Greetz
     
  30. Offline

    jeo

    hey - i love ur plugin!
    what are the chances of updating for latest bukkit, or maybe when 1.9 comes out?
     
  31. omG! i want this plugin but i have the


    error too :( i have bpermisions and iconomy 6

    i will wait... a update... with a sad face... waiting... for use it... on my server... with all my friends... :'(
     

Share This Page