Inactive [FUN/CHAT] CoolStoryBro v0.5 - Make your server brotastic [1.1R1 - 1.2.3R0.1]

Discussion in 'Inactive/Unsupported Plugins' started by oxguy3, Sep 25, 2011.

  1. Offline

    oxguy3

    CoolStoryBro - Make your server brotastic!
    Version: v0.5
    CraftBukkit build: 1.1R1 - R7 and 1.2.3R0.1 (use v0.4.2 for CBB1000 - 1.0.1R1)

    This plugin is primarily on BukkitDev; check it out here.

    Some admins were goofing around with each other's nicknames on a server I play when the idea for a plugin that makes everyone's name "Bro" came up. I decided to make it, although I improved on the original idea. When someone joins a server running this plugin, their display name will be set to one of 200 "bro names" which I got from this list on GQ (you can add, remove, and change the bro names list in the config file).


    Features
    • Gives everyone a bro name
    • Commands to toggle "bro mode" or reset a bro name
    • Configurable list of bro names
    • Supports SuperPerms, Permissions 2/3, and everything that can mimic either of those
    • Supports Help 3 (or has built-in help page)
    • Compatible with many other plugins (see this page)
    • Has an API (Javadocs here)
    • Backwards compatible - should work with most old Craftbukkit RBs
    • Hidden easter egg in the console on startup
    Download CoolStoryBro v0.5
    Source code is in the JAR


    Installation, Commands, Permissions, etc
    To make things easier for me, all of this information is on BukkitDev.


    Changelog
    (click here for a better changelog)
    Show Spoiler

    Version 0.5
    • updated event handling and configuration to non-deprecated API for 1.1-R6+ support (which means 1.1-R1 is now the oldest supported RB)
    • added "CoolStoryBro.exempt" permissions node to prevent someone from receiving bronames automatically when bromode is on
    Version 0.4.2
    • fixed a minor mistake in the Help 3 help information
    • config fixes
    Version 0.4.1
    • fixed a major bug in the code that creates/updates the config files
    Version 0.4
    • Changed "reset" to "add" in commands and permission nodes ("reset" will still work for legacy purposes)
    • Added new command "/bro remove" for removing bro names
    • Cleaned up the default list of bro names for duplicates, excessively long ones, weird ones, etc.
      • IMPORTANT: If you are updating from v0.3 and you do NOT want the list of bro names in your config to be reset, add "dont_update_bronames=true" to your config before updating
    • Improved permissions nodes for toggle commands
      • "CoolStoryBro.toggle.on" for "/bro on"
      • "CoolStoryBro.toggle.off" for "/bro off"
      • "CoolStoryBro.toggle" for "/bro on" AND "/bro off"
    • Added "-k" option for "/bro on" and "/bro off" to change bro mode without affecting the names of people who are currently logged in
      • Permissions nodes: "CoolStoryBro.toggle.on.keep", "CoolStoryBro.toggle.off.keep", "CoolStoryBro.toggle.keep" (for both)
    • Fixed some poor code that would not always detect syntax errors (i.e. it would have read "/bro reset one two" as "/bro reset one" instead of returning an error for too many parameters)
    • Documented API (actually, I had an API for v0.3, too, but I never thought to tell people about it)
    • Added new config options
      • permissions.force_superperms - Plugin will use SuperPerms (Bukkit's built-in permission system) regardless of whether or not it detects the plugin "Permissions" (if you're having trouble with permissions not working at all, try changing this).
      • permissions.ops_have_all_perms - Ops will be given all permissions (a lot of permissions managers include this option)
      • logging.log_commands - All commands will be logged in the console with the username of the person who sent them
      • logging.log_methods - All method calls will be logged (this can happen for a number of different reasons)
    Version 0.3
    • List of bro names can be changed via config (thanks to tips48 for helping me fix a problem with this)
    • Bro mode can be set in config (so you don't have to do "/bro off" every time you start your server if you don't want it on all the time)
    • Removed some debug messages I forgot to remove from v0.2
    Version 0.2
    Version 0.1
    • Initial release
     
  2. Offline

    Zaros

    Somebody get this man a medal!

    Its togglable right?
     
    facecardz likes this.
  3. Offline

    Plague

    this is not a plugin submission, just a link forwarder
    change it or remove it
     
    ShootToMaim likes this.
  4. Offline

    oxguy3

    :D Thanks! No it's not toggle-able, but I guess I can add "/bro on" and "/bro off" to toggle it in v0.2. Actually, I should definitely do that, since this isn't exactly a plugin one would use permanently.

    EDIT: Version 0.2 is well under way with Permissions support (PermissionsBukkit & Permissions 2/3), the commands should be good to go soon. I might have to add a config file, although I'm hesitant to do so because the next RB will probably force me to recode the config. Maybe I'll half-ass v0.2 and make v0.3 awesome. :p

    Alright, I put some actual content on this page, although I still have the big link to BukkitDev. Sorry about that, though I'm not sure how BukkitDev can be truly useful if we have to maintain a forum page in addition to a BukkitDev page.
     
  5. Offline

    Plague

    the link is of course welcome.

    why this forum is still accepting is beyond me, I mean it takes my time and it takes your time, right?

    oh, you need to have two versions of the changelog here, I'm afraid.
     
  6. Offline

    oxguy3

    Glad to see I'm not the only one confused by the transition to BukkitDev. Anyway, I added the changelog to this page now, though the one on BukkitDev is a bit more detailed.
     
  7. Offline

    Mosh Mage

    I'm not a Dev'er and even i am confused. But this isn't what i came here to say, this is:

    I'm not using this plugin but i have to take my hat off for you, Brobi-Wan Kenobi.
     
  8. Offline

    fffizzz

    any chance to make it very world specific?

    for example, on my server, we have 5 worlds. I'd like to make a new world and when you enter thats when its gets full on brotastic!
     
  9. Offline

    Butters12321

    Can you add a config file with all the names so we can add/delete the ones we want too?
     
  10. Offline

    oxguy3

    Wow this plugin got WAY more attention and suggestions than I expected. I am a bit busy (homework, school play, playing Minecraft, etc), but I will try to get to your suggestions soon. Here are my individual responses:

    Thank you! :D


    Hmm, interesting suggestion. I could see about investigating PlayerPortalEvents... I suppose this could work. How exactly are you managing chat on your server? Are you using some other plugin (please tell me which plugin) to have separate chat in each world, or is everything in one global chat?

    I might just do that. For my own convenience and efficiency (but mostly my convenience lol), it might have to be a PROPERTIES file rather than a CONFIG or TXT file, but it could work.
     
  11. Offline

    fffizzz

    Using HeroChat. There is a global channel, but thought it would be fun for members to have an "anonymous" world if you will.
     
  12. Offline

    treepunch

    Dude, this rules. Tim Tebro says Thank you.
     
  13. Offline

    Mathew Alden

    Can you make it so that it remembers the names... So like the first time someone joins it assigns them a name and then it always associates that name with them?
     
  14. Offline

    oxguy3

    :D Glad you liked it!

    Hmm, this could be possible. I would probably have to use MySQL for the storage, unless I figured out SQLite. It would almost certainly require external storage of some kind, or else it would cause a lot of lag.

    Okay, the way I set things up in v0.2, this should be easy enough to write, although I'll have to catch PlayerPortalEvents. I know how I will do this in my head, so hopefully I'll be able to add this in v0.3.

    Oh yeah, I forgot to announce v0.2 down here in the thread.

    What's new in Version 0.2
    I added the ability to toggle the plugin's function (aka bro mode) with a command as Zaros requested, as well as a command to reset people's bro names. All these commands support Permissions 2/3 (or anything that can impersonate Permissions), PermissionsBukkit, and Bukkit's built-in permissions, as well as Help 3 for command information.

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

    fffizzz

    Brotastic! Can't wait to play with it later.
     
  16. Offline

    oxguy3

    Version 0.3 is done!
    What's new in Version 0.3
    I added a config file! You can edit the list of bro names with it. You can also now set bromode on or off permanently (i.e. if you want it off, you don't have to type "/bro off" every time you start the server). See BukkitDev for detailed info on the config. Oh yeah, and I removed some code that I accidentally left in v0.2 that sent debug messages to the console. :p

    UPDATE: v0.3 has been tested to work with CBB #1240.
     
  17. Offline

    timwilldude

    Y U NO WORK
     
  18. Offline

    ShootToMaim

    PermissionsEx support please.
     
  19. Offline

    LamaBrains

    Amazing...
     
  20. Offline

    oxguy3

    http://forums.bukkit.org/threads/2018/

    Already has it - Permissions 2/3 is fully supported by PEX.

    Thank you!

    I've spent a couple hours on the next update, and finally got around to testing it enough that I think I can release it. Happy Holidays!

    What's new in Version 0.4
    • Changed "reset" to "add" in commands and permission nodes ("reset" will still work for legacy purposes)
    • Added new command "/bro remove" for removing bro names
    • Cleaned up the default list of bro names for duplicates, excessively long ones, weird ones, etc.
      • IMPORTANT: If you are updating from v0.3 and you do NOT want the list of bro names in your config to be reset, add "dont_update_bronames=true" to your config before updating
    • Improved permissions nodes for toggle commands
      • "CoolStoryBro.toggle.on" for "/bro on"
      • "CoolStoryBro.toggle.off" for "/bro off"
      • "CoolStoryBro.toggle" for "/bro on" AND "/bro off"
    • Added "-k" option for "/bro on" and "/bro off" to change bro mode without affecting the names of people who are currently logged in
      • Permissions nodes: "CoolStoryBro.toggle.on.keep", "CoolStoryBro.toggle.off.keep", "CoolStoryBro.toggle.keep" (for both)
    • Fixed some poor code that would not always detect syntax errors (i.e. it would have read "/bro reset one two" as "/bro reset one" instead of returning an error for too many parameters)
    • Documented API (actually, I had an API for v0.3, too, but I never thought to tell people about it)
    • Added new config options
      • permissions.force_superperms - Plugin will use SuperPerms (Bukkit's built-in permission system) regardless of whether or not it detects the plugin "Permissions" (if you're having trouble with permissions not working at all, try changing this).
      • permissions.ops_have_all_perms - Ops will be given all permissions (a lot of permissions managers include this option)
      • logging.log_commands - All commands will be logged in the console with the username of the person who sent them
      • logging.log_methods - All method calls will be logged (this can happen for a number of different reasons)
    My testing was a bit rushed, so there might be a bug running around in there. Cross your fingers! XD

    EDIT: Crap just realized I forgot a bug - don't use v0.4!
    EDIT2: v0.4.1 is out now, fixes the bug.
    EDIT3: v0.4.2 is out, fixes a minor mistake in the Help 3 info.

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

    ryandudea7

    08:12:53 [INFO] CoolStoryBro: New configuration created (v0.3)
    08:12:54 [INFO] CoolStoryBro: Configuration updated to v0.4
    08:12:54 [INFO] CoolStoryBro: Configuration loaded
    08:12:54 [INFO] CoolStoryBro: Permission system not detected, using SuperPerms
    08:12:54 [INFO] CoolStoryBro: 'Help' wasn't detected. Use '/bro help' for command info.
    08:12:54 [INFO] CoolStoryBro 0.4.2 enabled
    08:12:54 [INFO] Allora: Cool plugin bro
    08:12:54 [INFO] CoolStoryBro: Thanks bro
    08:12:54 [INFO] Allora: No prob bro



    AWESOME!
     
    oxguy3 likes this.
  22. Offline

    lipe123

    Anyone got this working on CB 1772 ? (with mchatsuite B93)

    When players join the server it works like:
    Brony the Tiger has joined the game.

    But when they chat both the +dn and +n vars in mchat is the same thing, just shows the +n value for both.
     
  23. Offline

    oxguy3

    Here's what lipe124 did when he had the same problem: "Anyways the problem was essentials has a option in their config that blocks the manipulaion of displayname. It works fine when thats disabled."
    EDIT: Lol just noticed the similar names lipe124 and lipe123... probably the same person. >.< I feel silly now.

    This plugin was using a bunch of old (deprecated) code that got removed from Bukkit recently, so I made an update to fix CoolStoryBro.

    What's new in Version 0.5
    • updated event handling and configuration to non-deprecated API for 1.1-R6+ support (which means 1.1-R1 is now the oldest supported RB)
    • added "CoolStoryBro.exempt" permissions node to prevent someone from receiving bronames automatically when bromode is on
    My testing was again a bit rushed, but this was a relatively small update so it shouldn't be too much of a worry.

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

    oxguy3

    Notice
    I am now disabling the comments section of the BukkitDev post so that all discussion will be located on this thread. Isolating discussion to one place makes it easier to keep track of for me. I chose the forums because they are much more comfortable to use and I can get notifications so I know when someone posts a reply.

    Here are comment logs I have copied from BukkitDev so that they may live on in glorious memory.

    Comments from the front page

    Comments from Use with other plugins
     

Share This Page