[FUN/SEC] TNTcake v3.0 - Get those griefers fat [1185]

Discussion in 'Inactive/Unsupported Plugins' started by boardinggamer, Aug 24, 2011.

  1. Offline

    boardinggamer

    TNTcake
    Version 3.0

    Description:
    When someone places TNT,lava or fire it magically turns into a cake(configurable block). x

    VIDEO IS OLD

    Download:
    TNTcake v3.0

    Permissions:
    TNTcake.apply (If set to true in config)

    Features:
    • TNT turns to cake (configurable) when placed
    • Lava/fire turns to cake (configurable) when placed
    • Turn time and weather on/off (in config)
    • Stop creepers from blowing your stuff up (configurable)
    To do:
    • Nothing right now
    Bugs:
    • When permissions is set to true anyone can place TNT on activated redstone and it will explode
    To Update Plugin:
    1. remove config file
    2. copy and replace the .jar
    3. run once to get new config
    4. change config and run server again
    Changelog:
    Show Spoiler
    v3.0
    • Always day and no weather
    • Optional to stop creepers from exploding
    • Lava and fire are turned off now
    • may be more that I just can't think of
    V2.4
    • Bug fix with colors
    V2.3
    • Permissions support
    V2.2
    • Bug fixes
    V2.1
    • Bug fixes
    • better config
    V2.0
    • Config file
     
  2. Offline

    Grammar Troll

  3. Offline

    Jaker232

    Your video has lag. Lots of lag, man.
     
    dave47561879 likes this.
  4. Offline

    sddddgjd

    Ah, i see you're full of ideas! :D
    If you ever need a 1080p video that doesn't lag,tell me! :D
     
  5. Offline

    boardinggamer

    Arno Cost & Arias - Magenta (Radio Edit)

    I know fraps was being stupid xD

    I am xD haha I love to code and making plugins is how you learn isn't it? So I make things for my server that I think are helpful and fun =D
    also I will let you know for my next video if id decides to be laggy again

    I'm thinking about adding something to this what would be cool for this plugin? let meh know xD

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

    ArcheCane

    Nice. Also, how about configurable color for "How about you try some cake, griefer"? :3
     
  7. Offline

    boardinggamer

    I need to learn how to make a config file first xD i'm still new to making plugins so I haven't learned that or commands yet. well I can't remember how to do commands but I will work on a config file for this maybe you can also chose the message and the block? sound cool?
     
  8. Offline

    ArcheCane

    Yes. :3
     
  9. Offline

    boardinggamer

    Alright I am working on adding the config but I don't really understand the coding for it so It might be a little while but I am working on it as much as I can.
     
  10. Offline

    DeadlyScone

    lol, that's pretty awesome!
     
  11. Offline

    boardinggamer

    @DeadlyScone
    thank you very much =) I would release the next update if I could make the config file work but I don't know how to
    =(
     
  12. Offline

    xSh4dowXSniP3rx

    I believe i can help you with the config file. =) PM me if you need help.
     
  13. Offline

    DrBowe

    Your signature has spoilers.
    Lots of spoilers, man.
     
  14. Offline

    boardinggamer

  15. Offline

    boardinggamer

    Updated the link. Sorry for it being broken =(
     
  16. Offline

    sddddgjd

    For the "doesn't affect ops" part,just do:
    if(plr.isOp())
    return ;
     
  17. Offline

    Baummann

    *Smartass mode activated*
    A better SuperPerms compatible way would be:
    Code:
    if (player.hasPermission("tntcake.ignore")) return;
    And in the plugin.yml file:
    Code:
    permissions:
       tntcake.ignore:
                description: Example Description
                default: op
    *Smartass mode deactivated*
     
  18. Offline

    boardinggamer

    I already know that xD I just wasn't sure if I wanted to add that all in yet xD but I will add it now
     
  19. Offline

    Jogy34

    I have a few suggestions for you:
    1. make the TNT turn into something less useful like a pumpkin(in my opinion cake is harder to get/make than TNT)
    2. for checking if the player is an op you can use "if(!player.isOp){}"replacing player with the name of your Player variable
    3. Add lava to this but don't add water. water has piratical uses and if someone griefs with it it is easy to clean up and the most it can destroy is redstone and torches.
     
  20. Offline

    sddddgjd

    In the todo list,it said "doesn't affect ops", so this is what i gave him...
     
  21. Offline

    boardinggamer

    @Jogy34
    I am working on a config file that will let you change the block it turns into and also I am making it not affect ops, I already added that in the code. Right now the config will only affect the message that comes up though. I will add the block in a later update.

    EDIT: To be clear I didn't update it with the config yet because that part isn't working I have to change the code a bit to read the config file.

    @sddddgjd
    I'm not sure what your saying, sorry xD

    Version 2.0 is done =) thanks sddddgjd for your help with the config

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

    boardinggamer

  23. Offline

    softaz59

    Error 404 for download :(
     
  24. Offline

    boardinggamer

    Try it now
     
  25. Offline

    softaz59

    Nice =)

    Thx u !
     
  26. Offline

    boardinggamer

    Works with build 1145 now
     
  27. Offline

    nath30

    hows this going with getting it to work for only serration groups
     
  28. Offline

    boardinggamer

    I haven't added that yet but I will try to now
    The main problem is that when the TNT explodes, it wont break blocks and I can't set that per player.

    updated

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

    Technius

    I decompiled your plugin and I found an error in the config:
    Code:
            } else if (TNTcake.color.equals("YELLOW")) {
              plr.sendMessage(ChatColor.YELLOW + TNTcake.text);
            } else if (TNTcake.color.equals("YELLOW")) {
              plr.sendMessage(ChatColor.LIGHT_PURPLE + TNTcake.text);
     
  30. Offline

    boardinggamer

    opps stupid mistake xD I will fix that now
    EDIT: Ok I fixed that updating link and post now
     

Share This Page