[Plugin Requests] Just Server News

Discussion in 'Archived: Plugin Requests' started by mima19, Jun 18, 2012.

  1. Offline

    mima19

    Plugin category: Informational (chat)
    Suggested name: JustNews

    A bit about me: I'm an owner of MCGods Server(S currently just mc, but working on vanilla and tekkit)
    What I want: A plugin that is like motd, but its actually News. Which you can edit from in game...Where I could toggle the colour, words and everything basically ig. (config for news, if you would like I can give you the template on how to create it...but not make it as my coding is 1/10 (html))

    Ideas for commands: /Newschange Prefix/name <msg> which allows to change the prefix or the 'newspaper name', /News create/new/add <time> <msg>- where you can add (create) news/events for a certain time length (eg /newz new 10d The server is now at so and so, /news add The tekkit server ip is so and so, this would make 1st one 'expire' after 10 days and the 2nd one is till you remove it) /News del/delete/rem/remove <msg/ msgid> removes a msg (with or without id which you get the id when creating the news) /News d/display - Displays the news to each player (is s added it will only show news for you). /Newz delay <time>[onlogin] delay between news (and option to make it on logins), /News event <day(dd.mm)/time> [issue][p/o] <msg> this will make news, but on picked time it will be broadcast, and the ability to issue a command (eg /warp spawn (players perspective, or creators))


    Ideas for permissions: Each node to do with a command: News.change.prefix/name/*, News.create.delayed/constant/*, News.remove.msg/id/*,News.display.s/all, News.delay, News.event.time, News.event.issue.own/player (perspectives), News.event.create

    When I'd like it by: Whenever you can, but please update it to newer versions

    Similar plugin requests:Couldn't find any, as all of them copy news from the internet

    Extra Info: I would like some credits once its made...
    As well as the source incase your pc/host crashes and you have to do it from the begginging.
    any Questions just ask
     
  2. Offline

    ienze

    I will make it... Can I use MySQL to store news, or only files?
     
  3. Offline

    pzxc

    You can do this with my plugin: http://dev.bukkit.org/server-mods/vitals-plugin/

    The module is called BetterNews, just enable that in the config (and any other modules you want)

    Then use /news add Our server is awesome! or /news change [something else] or /news delete
    You config how many news entries are shown when a player logs in, and how many when they type /news
    The news entries are stored in a flatfile so you can integrate them with your website or whatever
     
  4. Offline

    mima19

    yes, but would I get all of the modules? or can i just enable one?

    Yes I don't mind MySQL as long as it doesn't need anyother plugins such as vault or anything...

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

    pzxc

    You can just enable one. In fact my plugin is designed with that in mind, every module has an "enabled" setting and by default all modules are enabled:false. So you can install it and JUST turn on the module you want (or multiple if you want multiple)
     
  6. Offline

    fredghostkyle1

    why not valt? like 100000 plugins use it...... i think 1 of your plugins needs it..
     
  7. Offline

    mima19

    I don't like vault, its too big for me....
     
  8. Offline

    Sleaker

    Do you even understand what it does? Or are you just under some odd assumption that because it provides an easy to use service it must be bloated?
    Granted I don't see a practical reason to use Vault for your request (unless you wanted Econ support), but it seems you have a very wrong idea of what Vault does.
     
  9. Offline

    mima19

    No I meant any plugins (eg. vault). I know that its iconomy like...but its just too big
     
  10. Offline

    Lonesface

    I can assure you it isn't really big.
     
  11. Offline

    pzxc

    Vault is the best thing since sliced bread. You are severely limiting the number of plugins you can use if you don't have vault, because going forward it is BY FAR the easiest way for plugins to interface with many, many different economy systems, permissions systems, etc.

    Without vault, EACH plugin must build their own support for all the different permission systems, group manager, permissionsex, etc etc etc. Way too much work to do all that for every single plugin you write, so without vault you're extremely lucky if the plugin you want happens to support the permissions system you use. And the same goes for economy systems and chat systems. With vault (which by the way is VERY efficiently written, it produces less lag for a plugin its size than almost anything I've seen), plugin developers just hook into it, and then BAM their plugin works with X different permissions systems, X different economy systems, etc.

    I was using iConomy on my server for the longest time because it used to be the best, and it's a pain to change. Well iconomy has fallen into disrepair, a critical multithreading bug was starting to cause periodic money resets for all players.... dealt with the pain of it for a while, backing up and restoring the ledger every few days, finally gave up. Switched to BOSeconomy.... boom guess what, since I use vault, and all the plugins I have use vault, all i did was uninstall iconomy, install boseconomy, and voila all my plugins still magically work.

    Whatever your reservations are to using vault, I guarantee you that as time goes on more and more plugins will depend on it. It is quite simply something plugin developers can't do without, which means it's something server owners can't do without. Get used to it, it's not going away, and anybody like me who knows what they're talking about would cry if it did go away.

    Srsly.

    Okay maybe I laid on the flattery a little thick. :p

    But no kidding, thank you vault you have made my life as a plugin developer 1000% easier.

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

    mima19

    You have convinced me about 80% to use it....

    P.S.
    Thats the reason I don't really want it, if it stops updating, crashes, or anything happpens to it....you are in big trouble
    P.P.S I'm gonna get it...
     
  13. Offline

    np98765

    If it stops updating, etc., EVERYONE is in big trouble. If it does, I'm 100% sure that someone, whether it be the developer or not, will fix it as soon as they humanly can. xD
     
  14. Offline

    mima19

    But that would mean that the developer would need to code it so other plugins can be linked to it, and because it manages chat, permissions, economy...it would be a tough job to do.
     
  15. Offline

    np98765

    Not necessarily - They wouldn't have to recode it, just find the bug and squash it. I believe it's open source..

    And you should worry about that problem if it happened. :p
     
  16. Offline

    Sleaker

    not really, Vault is full LGPL with full source available on github. It has multiple contributors, and multiple people that check it. In addition the only time it breaks is if An Economy or Permission plugin makes breaking changes to their API (happens rarely), or when Bukkit makes a breaking change that Vault actually uses (has only happened once since Vault was made).

    Vault not being around is less likely to happen than your Permission, or economy system getting abandoned.
     
  17. Offline

    np98765

    Nicely phrased, sir. :)
     
  18. Offline

    Sleaker

    Anyhow, as I already stated, Vault seems useless for this projects. So it should really be a non-issue.

    I like this idea, I know MCDocs could be used to do something very very similar though the commands might be different or not exactly what you want.
     
  19. Offline

    np98765

    Well, if you're worrying about the commands, then you could use CommandHelper..
     
  20. Offline

    pzxc

    Unless you want to control the permissions of who is able to add/edit/delete news and the permissions of who can see it. Then you're back to supporting each of many different permissions systems.... unless you use Vault then the plugin works with all the permissions systems that Vault supports (all the major ones and some minor ones) :p
     
  21. Offline

    Sleaker

    not true, permission attachment API is in bukkit, and this wouldn't want them persisted past the date of the news item anyway, so it's going to need to manage the permissions itself. if the news items are going to be added like this (dynamically). The only thing that using Vault adds support for in this situation is P3, which is deprecated and shouldn't really be in use.

    Situations where you should use Vault:
    I want to add a permanent permission to a player, that my plugin doesn't have any intention of managing.
    I need to check group-centric data, or modify a player's groups.
    I need prefix/suffixes of a player or their group or some other similar data.
    I need offline permission support.
    I absolutely need P3 support (and even then ask yourself why you're lame and still using it).

    Situations where you shouldn't ever use Vault:
    I need to add a permission that I'm going to be monitoring/managing intricately based on data in my own plugin.
    I need to add a temporary permission to a player that will be removed when they logout or when something changes.
    I need to check if a player has permission for something.
     
  22. Offline

    Deathmarine

    The offline player object will always return false if checking permissions (Even if the player object is found), which in this case vault is the next best thing then you have to check the permission of a player offline from the plugin itself. However Vault is so damn big its nasty to use anymore. Sleaker you really need to use a class loader and chop it up into some libraries, man. (Chat / Permissions / Economy)
     
  23. Offline

    Sleaker

    'Damn big' - define big? As far as I'm concerned anyone that tries to argue along the lines of 'Vault is too big' doesn't really understand what's going on, or how Vault works, or is using some preconceived notion of what 'big' is. Vault has 5 or 6 classes that are ever touched by other plugins. And pretty much the smallest memory footprint a plugin can have.

    What good does splitting the library do if a good deal of plugins require multiple aspects? Did you consider the consequences of splitting the plugin? Now a plugin developer needs to hook 3 different (possibly 4) plugins/libs just to have all of Vaults functionality. On top of this, a server admin needs to now update 3-4 libs instead of 1. I'm sorry, but I feel as if you didn't really think through the consequences of splitting.

    Additionally, what good does a classloader do? Bukkit already loads all the classes, why would I need to use one for this?
     
  24. Offline

    Deathmarine

    Big as in size, memory consumption. However Its was not as big as thought it was. Usage size, hell everyone uses it. You remember Ultrabans was like what your 4th plugin added. Now everything pretty much requires it.
    Getting Off topic.

    If you have to have Offline Player Permissions. Vault is where is at, to appeal to everyone.

    Well I'm making something similar to this with WordPress. I'm not sure if it will work for yah. If you have a website we can integrate the news from it, except for Enjin, I won't touch it, considering the terms of service.

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

    mima19

    Thats what I mean, there are plugins that find news from a website, when I want it to be pure server news.
     
  26. Offline

    pzxc

    Really? So even if I am integrated with Vault for economy reasons, I shouldn't use Vault's perms.playerHas(player, permission) but rather bukkit's method player.hasPermission(permission) in all cases?
     
  27. Offline

    Sleaker

    using Vault's method is nearly identical in all situations. but it has one extra layer of lookups to perform (which the VM might just optimize away), but you shouldn't simply use vault's permission API unless you really have a legitimate reason to be using it (anything listed).
     

Share This Page