[INFO] Tips 1.1 - periodic server messages [1.1]

Discussion in 'Inactive/Unsupported Plugins' started by maczydeco, May 9, 2011.

  1. Offline


    Tips - periodic server messages:
    Version: v1.1

    BukkitDev project page

    This plugin will allow you to set custom messages to be broadcasted by the server periodically.
    A similar plugin with more features is rTriggers.

    • Global, per-world and per-group (via permissions) tips
    • Use colour codes on your tips
    • Different sets of tips with different periods
    • Show tips randomly or sequentially
    • Configurable in settings file (plugins/Tips/config.yml)
    • /tips reload command to reload the config file, available to ops or users with "tips.reload" permission, if Permissions is installed
    Yvar, TurtlePatrol and Kingjarrad like this.
  2. Offline


    Great plugin. I installed it and it works great. Simple yet effective.
  3. Offline


    how do i use it do i make a folder or does it make one?
  4. Offline


    You must create the Tips folder yourself, and put the config.yml file inside it.
  5. Offline


    thank you
  6. Offline


    Is there a way to get a plugin to do console commands at set tick delays? If so, would you consider implementing it?
  7. Offline


    please only use CB version ranges when really needed
  8. Offline


    link down.
    EarlyLegend and wer2213 like this.
  9. Offline


    Giving this one a try :)
  10. Offline


    Would love this in my server, but the link is currently broken.
  11. Offline


    How do you configure it for random? I don't see that in the config file...
  12. Offline


    Add it manually, before tips in the config.yml file, add random: true
    Kingjarrad and maczydeco like this.
  13. Offline


    sorry I was switching hostings, it should work now
    minecraftworlds likes this.
  14. Offline


    a /tip command would be fantastic to receive a random tip from the server
  15. Offline


  16. Offline


    yes, 733 and 739 too
  17. Offline


    Can you please provide more information? Mainly about the config file. First off, the head post doesn't say anything of how to get the config file. Second, the example provides the outline we need but other then that, it doesn't go into details about the config file.
    Not trying to be mean, I just think you should provide more information for people who don't fully understand as it took me a while to fully understand.
  18. Offline


    What's the difference between 'period' and 'delay'. Some more info in the OP would be nice.
  19. Offline


    Delay is how long it takes to get the first tip, period is the time between tips after the first.

    Other than that, I thought the example config would be self-explanatory, it shows how you can have different tip sets for each world, with one or more tips in each set.
  20. Offline


    This is quite confusing...
    When trying to parce the config file I get an error.
    2011-06-05 15:17:13 [SEVERE] Could not load 'plugins\Tips.jar' in folder 'plugins':
    found duplicate anchor 3ProTip; first occurence
     in "<reader>", line 9, column 13:
                  - &3ProTip: Hookshot onto a cliff  ...
    second occurence
     in "<reader>", line 10, column 13:
                  - &3ProTip: Lagging? No problem. D ...
    So Im like ok...
    but it couldn't be & because & also works in the test config file....So...whats wrong with it??

    Here is the original config file.
    # tips by world, or 'global' for all worlds
    # delay/period is in minutes
    # color code: $x, where x is the color code [0-9a-f]
        - period: 5
          delay: 0
              - &3ProTip: Hookshot onto a cliff or a tall building by launching an arrow (without a bow) and then using a string!
              - &3ProTip: Lagging? No problem. Download the anti-lag feature on the website (sfxworksmc.blogspot.com)
              - &bHave some friends? Add them in game using /friend add <playername>!
              - &bThe more you donate the more you get! Donators are able to teleport, fly, and convert in-game money directly into items of their choosing!
              - &3ProTip: Don't EVERY worry about grievers or stealers. An admin can easly undo all their actions with a simple command.
              - &7ComingSoon: Killed by the same player player 3 times in a row? Your vengeful sword you spawned with should take care of him.
              - &bEach contenent has a majority element. So a simple element like sand might be very rare (and sell for a lot more) somewhere else.
              - &bIn The Wild, monsters will spawn a lot more often. However, the more players build in an area the less likely they will spawn in that region.
              - &3ProTip: Run faster, jump Higher! Level up your dexterity by wearing heavy gold or diamond boots!
              - &3ProTip: Falling forever? Sounds like a chunk error. Reload it and stop falling with /chunkme !
              - &3ProTip: Make lights that turn on at night! A future tec brought to you by andromeda, use /lampstone and place a glowstone block!
              - &bHaving trouble finding a certain item? Ask the players around you or trade with a merchant.
              - &3ProTip: The first thing a successful business needs is workers. Higher some or create some NPCs with /citizens !
              - &bMajor citys are roughly 1500 meters (blocks) apart. Since walking would take forever, use the rail system found in every city.
              - &bIn order to create a successful town you need people! Towns are founded NEAR cities.
              - &7ComingSoon: In order to create a successful CITY you need more than just people. The guidelines are found on the site, but the key element is DISTANCE!
              - &bIron, Gold, and Diamond mines are rare, but they exist. There is a small chance of finding rich veins that consits of 45+ ore in a clump!
              - &7ComingSoon: Mountian ranges are found on huge contenents. Usually, you find them by heading upstream.
              - &7ComingSoon: In The Wild, you might find unique natural formations. They are truly a sight to see.
              - &7ComingSoon: Cant hear your friend? Its probably because he is in a different town. Chat is regional, so /shout so your friend can hear you!
              - &7ComingSoon: You can /mail letters to other people in different towns! Recieve them in your city or town mail station.
              - &bModerators are Blue and Red. If you need help from any, do /helpop <message with issue> and one will come to help you!
              - &bCreate your own personal shops by using a half step block. Simply hold sneak (default = shift key) and right click with the item in hand!
              - &bWan't to message someone who is offline? Send them a memo using /memo <receivingPlayer> <message>.
              - &bFind any recent changes about the server along with screenshots and announcements at sfxworksmc.blogspot.com!
        # every 5 minutes, one of those 3 messages
        - period: 1000
              - "CORE"
        # every minute
        - period: 1000
          delay: 0
              - $5CORE
        # every 2 minutes
        - period: 1000
              - $4be careful!
  21. Offline


    i think it's because you have a : in your tip. It might interfere with the YAML syntax's.

    How do you create multiline tips? Like, if I have one long tip i want to spread out on 2 lines?
  22. Offline


    use $ instead of &. (read the 3rd line from the top. :p)
    nope, thats not it. I use them too. The collor codes have to be written with a $ instead of &.

    It automatically continues to the next line when the text doesn't fit on one line.
  23. Offline


    I FOUND A BUG!! :D If there are no tips when the user issues the /tip command, instead of letting the user know it tells you "An internal error occurred" and spits this out in console! Using the latest Recommended Build 818.
    Show Spoiler
    2011-06-11 14:22:28 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'tip' in plugin SimpleTips v0.4
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:281)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:718)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:684)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.IllegalArgumentException: n must be positive
    at java.util.Random.nextInt(Unknown Source)
    at com.keithlawless.plugins.SimpleTips.SimpleTips.onCommand(SimpleTips.java:147)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
  24. Offline


    A folder doesnt appear when I run the server. it never appears :( help?
  25. Offline


    This is happening to me as well. This needs to be fixed ASAP
  26. Offline


    Create a folder named Tips in serverfolder/plugins/
    Make a new text document named config and change the extension to yml
    Then put in your config settings as listed in the example
    Last but not least reload the server.

    # tips by world, or 'global' for all worlds
    # delay/period is in minutes
    # color code: $x, where x is the color code [0-9a-f]
        - period: 1
          delay: 0
              - "$3Remember to register at our forums, somewhere"
        # every 5 minutes, one of those 3 messages
        - period: 5
              - "$6Hello, world"
              - $BSomething random
              - $FSomething even more random
        # every minute
        - period: 1
          delay: 0
              - $5Another minute has elapsed
        # every 2 minutes
        - period: 2
              - $4be careful!
  27. Offline


    So it worked for a little bit but when I changed the messages and used the /tips reload command it stopped working. I get an unknown console command error when I use /tips reload and the tips don't appear. I also tried re-installing it but it still give me the unknown console command error and the tips still don't appear. Any ideas?
  28. Offline


    Sounds like invalid yml, make sure you have no tabs, and that everything is formatted properly (YML is fickle you know!)
  29. Offline


    Yeah I know it's fickle. It had 12 errors when I put it through the parser! It works now, thanks for your help!
  30. Offline


    I already did this, but I still think the plugin should generate the file.

Share This Page