Plugin Request Settings

Discussion in 'Plugin Help/Development/Requests' started by TenchiPlaysMC, Apr 16, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    TenchiPlaysMC

    Plugin Category:
    Fun

    Suggested Plugin Name:
    UserSettings

    What does this plugin do?
    When a player types the command /settings or /usersettings it brings up a GUI of all the settings they can toggle, they can toggle private messages, chat, daylight on their point of view, and if you can pvp. :3

    Commands:
    /settings (Aliases: usersettings, usettings, setting) - Opens up the settings inventory.

    Permissions:
    usersettings.open - Opens the main inventory for settings.

    If you could I would like every message customizable, especially the items in the inventory and the inventory title.

    When I would like it by:
    Soon as possible! :D
     
  2. Offline

    RichardBob123

    What kind of user settings do you think your server would need?

    EDIT: Ah, I see them now.
     
  3. Offline

    TenchiPlaysMC

    Yeah.
     
  4. Offline

    sgavster

    Do you just want those settings? It would be too hard (with exceptions) to make it customisable. And what exactly do you mean 'daylight on their point of view?
     
  5. Offline

    Smaltin

    @sgavster he means that his client can see daytime, like the playertime plugin. (The ability to toggle day and night)
     
  6. Offline

    TenchiPlaysMC

    What @Smaltin said

    And yeah those settings. And could you try to make it customizable? At least the inventory title and all that.
     
    Last edited by a moderator: Apr 16, 2015
  7. Offline

    sgavster

    @TenchiPlaysMC I can do this:
    Make just those settings,
    but, make all of the titles, types, names, ect custom.
     
  8. Offline

    TenchiPlaysMC

    Alright!
     
  9. Offline

    sgavster

    @TenchiPlaysMC Okay, I did a little, (set up the config, and some coding, actually 7 classes, most of them done) I'm just working on the tedious stuff now. I have a question: for 'private messages' what do you mean? I can -try- to make it so they don't get /pm, /r, ect.. but I'm not sure, btw, this is the config(yes, a sneak peak :p)
    Config (open)

    PHP:
    ################################################################
    #           This is UserSettings by sgavster's config!         #
    #                   This plugin was a request                  #
    #       Please note: This plugin uses per-player configs.      #
    ################################################################

    #Prefix: Please put a space at the end.
    prefix'&3[&4User&6Settings&3] '
    #Inventory Name:
    inventory_name'&4User&6Settings&3 Menu'
    #Messages use %result% to get the true/false.
    private_message_toggle'&6You have changed your private messages to &4%result%'
    chat_message_toggle'&6You have changed your chat to &4%result%'
    daylight_message_toggle'&6You have changed your daylight to &4%result%'
    pvp_message_toggle'&6You have changed your daylight to &4%result%'
    #Item names:
    private_message_name'&6Private Messages: &bClick to toggle.'
    chat_name'&6Your Chat: &bClick to toggle.'
    daylight_name'&6Your Daylight: &bClick to toggle.'
    pvp_name'&6Pvp: &bClick to toggle.'
    #Item Types: If any of these are null, they will be default..
    private_message_item'PAPER'
    chat_item'SIGN'
    daylight_item'WATCH'
    pvp_item'DIAMOND_SWORD'
    #Other Messages:
    no_perms'&4You do not have permission to do that!'
    not_a_player'&4Hey console! You're not a player!'
    ############################################

    I'm going to bed.. I'll check this after school. I'll try my hardest to get this done ASAP, if I finish it, but it is a bigger project than expected.
     
  10. Offline

    TenchiPlaysMC

    @sgavster They won't receive private messages if it is toggled off. If it is toggled on they will.
     
  11. Offline

    sgavster

    @TenchiPlaysMC Yes; I know that.
    But are you using essentials or something? To block something like that is a little harder..
    EDIT: I could just see if the a player types /msg (or whatever the commands are, please list them!) and block it if the player has it off..
     
  12. Offline

    TenchiPlaysMC

    Hmm yes, I mean if you don't want to you don't have to.
     
  13. Offline

    sgavster

    @TenchiPlaysMC Read my edit, I can try tomorrow but if it doesn't work out I'll let you know.. Sorry about this.
     
  14. Offline

    TenchiPlaysMC

  15. Offline

    sgavster

    @TenchiPlaysMC Alright, and if you get a chance, try to think of all the messaging commands (if you can't I can look at the Essantials wiki :p)
     
  16. Offline

    TenchiPlaysMC

    @sgavster kk

    @sgavster Actually don't worry about the private messaging, I changed my mind have about speed and jump boost? Ya know the effects?

    @sgavster If that is alright with you :3
     
    Last edited by a moderator: Apr 16, 2015
  17. Offline

    sgavster

    @TenchiPlaysMC So you have speed and jump boost constantly? I can do that. Just tell me the level of them and I can do that.
     
  18. Offline

    TenchiPlaysMC

    @sgavster Well, they can be toggleable? And the speed and jump effect amplifier can be set in the config?
     
  19. Offline

    sgavster

    Yeah, when you have it on you constantly have the 2 effect, and when you have it off it will remove them (but you can still use a potion)
    I can add the config options..
     
  20. Offline

    TenchiPlaysMC

  21. Offline

    TenchiPlaysMC

    @sgavster How's it going with UserSettings?
     
  22. Offline

    sgavster

  23. Offline

    TenchiPlaysMC

    @sgavster That's great. Didn't expect for you to respond at this time where I am. Lol
     
  24. Offline

    sgavster

    @TenchiPlaysMC I'm not usually on now, it's 4 am lol.

    I have a question:
    When the player toggles daytime off, do you want it night, or normal cycle?
     
  25. Offline

    TenchiPlaysMC

    @sgavster Toggled to night please and oh
     
  26. Offline

    sgavster

    Woah, I did it!
    I finished it. Here are some features
    • All of the commands you wanted
    • Custom GUI name, item name, text when the player clicks on an item, no permission message, not a player message, not able to talk message
    • Custom items for all 4 settings
    • 4 settings: effect, chat, daylight, pvp
    • Custom prefix
    • For the effect: When you have it enabled, you will always have jump boost, and speed, you choose the level. Even when you drink milk you still have the effect.
    • For chat, if you have chat disabled, you do not get messages, and you can not send them
    • For daylight: if you have it on, it is always day for you, if you have it off, it is always night for you
    • For pvp, if you have it on, you can pvp, as normal. If you have it on, you can't hit people, and they can not hit you.
    • Per-player config files. This makes a file for each player; to store their settings.
    If I missed anything, I'll let you know..
    If you find any bugs, please tell me
    I plan to post this on Bukkit Dev soon. (don't steal the plugin..)
    Here it is!
    https://www.dropbox.com/s/rxsnr5izv5ot24g/UserSettings.jar?dl=0
     
  27. Offline

    TenchiPlaysMC

    Last edited by a moderator: Apr 18, 2015
  28. Offline

    sgavster

    @TenchiPlaysMC I figured as much lol.
    Just let me know how it goes..
    --> bukkit plugin link <---
    Did you use /reload? You have to relog if you did. Try that and tell me how it goes.
     
  29. Offline

    TenchiPlaysMC

  30. Offline

    timtower Administrator Administrator Moderator

    Moved to Bukkit alternatives
     
    sgavster likes this.
Thread Status:
Not open for further replies.

Share This Page