[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

    Don Redhorse

    perhaps go for Vault?

    any update on this?
     
  3. Offline

    sorklin

    We're missing some deaths -- like starvation. Remember on Harder modes, you can starve to death.
     
  4. Offline

    sorklin

    And apparently, if you die in one of the other ways, like starving, it breaks the sign. Not only breaks the sign, but it makes it so the sign owner can't remove the sign to reset it.
     
  5. Offline

    Don Redhorse

    ok.. I have an alpha of DeathTpPlus ready which includes TombStone and Tomb support... so it will not be long till this can be released. I'm already updating the project pages.

    If somebody wants to try it let me know.
     
  6. Offline

    Stormbow

    I've got DeathTpPlus on my list of stuff to put into a server, no idea if or when I'll go live though. If I do, I'll come back and let ya know in your thread how it goes.
     
  7. Offline

    Don Redhorse

    btw: there is one big issue with 2.99 atm... you can't change the messages.. otherwise it looks quite stable and I think we will release it when we get that issue fixed (which is based on a missing function in RB 1337 ;-( so let's see IF we can even fix it).
     
  8. Offline

    Don Redhorse

    hmm wonder why I never posted here... Tomb is integrated in DeathTpPlus
     

Share This Page