I was thinking about a quiz that new players would take once they joined that decided their faction. For example, my server has 4 factions that players are assigned. Things would go easier if when they entered, they would get a few personality questions and then based on their answers, they would be put in a faction. For example... 1. Favorite color? - Red (Faction 1) - Teal (Faction 2) - Black (Faction 3) - Blue (Faction 4) 2. Some other question.... - Blah (4) - Blahh (2) - Blahhhhhhh (1) - Bla (3) So if the person chose Teal for one and Blahh for two, they would be put in faction two. I don't know if this is possible or not, but if it is, that would be a pretty cool plugin!
kristenrose1999 It is very possible, and very simple if I get what you want, but you didn't provide a lot of the info I would need to make it, such as commands, permissions, config options, and more question.
Gerov you should decide that kristenrose1999 but betrayers would have access to any faction ._. i dont like it sorry
Gerov is right tho u need to read the instruction that bukkit plugin tutorial or whatever it is ses to do -name of plugin -what i want -commands etc...
hugo2000 I did read the instructions. I basicly wanted to make sure this was possible before everything was planned out. c: kurtv Well, if someone broke a big faction rule, they would become factionless. (Kicked and unable to join another) Gerov I'll try the best that I can here. Plugin category: Factions/Quizes/Test Suggested name: FactionQuiz What I want: As said before, I'd like a plugin that quizzes all new players and based on their answers, they are automatically put in a faction. I'd love if the quiz would pop up on the screen and they click the answer choice that they choose, but if that isn't possible, it's all good. Ideas for commands: /forcequiz <player> /factionquiz on/off Ideas for permissions: factionquiz.test (I honestly don't know here. All I need is only new players take the quiz right when they join. Everything else would probably be done in the config.) When I'd like it by: I'd hope within the next month or so, but I am willing to wait longer if needed. Ideas of Config: I'm not good with configs, so I'm unsure if this will make sense. Title: <The title would go here.> Question 1: <First question goes here> - Connected Faction: <Faction 1> Question 2: <First question goes here> - Connected Faction: <Faction 2> Question 3: <First question goes here> - Connected Faction: <Faction 3> Question 4: <First question goes here> - Connected Faction: <Faction 4> Randomize questions: <true/false>
kristenrose1999 I can attempt it. Can you give me the faction names? Questions you want asked? What happens if they don't take it? Are they frozen until they take it? Are they a certain permission group until they take it?
EgyptianKing The faction named are Horde, Alliance, Demons, and Angels. They will be frozen until each question is answered. I'd also like the chat to be invisible or frozen so people can't just tell the new player answers to get in a certain faction. The questions are below. The faction each answer is linked with will be in parentheses for you. 1. What is your favorite color? - Red (Horde) - Gold (Angel) - White (Alliance) - Black (Demons) 2. How would you describe the people you hang out with? - Bad (Demons) - Rebellious (Horde) - Drama free (Alliance) - Kind and sweet (Angel) 3. How would you describe yourself? - Bad (Demons) - Rebellious (Horde) - Drama free (Alliance) - Kind and sweet (Angel) 4. What is your favorite type of Minecraft server? - Hunger Games (Demons) - Super Hero (Alliance) - Factions (Horde) - Plots (Angels) 5. What is the worst trait a person can have? - Mean (Angels) - Dramatic (Alliance) - Nice (Demons) - Annoying (Horde)
EgyptianKing Can't you make all that configurable...? I could do it in my sleep, but I'm too lazy. =P
kristenrose1999 Alright thanks, I'll make it soon. Edit: You're using the Factions plugin right? Freelix2000 Thanks for sharing
kristenrose1999 Here you go, https://www.dropbox.com/s/5ds2kkwwlfwihm2/FactionQuiz.jar Sorry for it being pretty late, this is probably the hardest request I've had to do. If you don't like how anything looks (the message colors, the sentences, the way I formatted everything) you can reply here and I'll change it. I think I got it so that the player cannot hear anyone's chat, but I'm not sure. If the newly joined still can see player's messages, reply back. Also the only feature I couldn't implement was the freeze player feature. But seeing as you have a month or so for this feature, I'll eventually get around to it and completely fix it / optimize it.
EgyptianKing Do you know how I can test this? Would I have to leave my faction, leave and come back, or have a friend who has never joined enter the server?
kristenrose1999 Yea you would have to either get a friend who has never played or delete your player file
EgyptianKing Did you not make it based on data in a file? That would be a better way to do it, just because using the method for checking if its a player's first time joining could fail if a player leaves before finishing the test, joined before the plugin was running, or if the server for some reason wasn't running the plugin at a time and a player joined then. EDIT: Also, I've found that the easiest way to make a flawless player freezer that allows them to move their head and move in the block and doesn't continue to glitch/teleport them after the first time they move is to store their login location in a HashMap then listen for PlayerMoveEvent and only cancel the event if their getTo() location block is not equal to the block in the hashmap.
Freelix2000 Can you send it to me and I use the one I like the most? c: EgyptianKing I deleted a player's file and when they joined back, nothing happened. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Here's my version: http://download1338.mediafire.com/uddbnw95g52g/5bkydhvb8ldfhj7/FactionQuiz.jar It is based on player data, cancels testing players from hearing chat, freezes them lightly until the test is complete, and it has configurable questions, answers, and factions corresponding with the answers. To create more questions, copy the sample question in the config and paste and edit it. The place where it says "SampleQuestion" will not show in chat and does not matter, but it must be unique for each question. You can also add more questions, just copy an existing question and paste it and replace the its number with the next number and be sure that each question has a corresponding faction. A score is kept for each faction based on the questions answered, and when all questions are answered it will pick the faction with the highest score. If you choose to use this and you need help configuring, please let me know. Also make sure players have permission to use the faction join command, and you may want to block the /f leave command, or if you would like I could add that in this plugin. Also in case you don't see the message at the beginning, it says that you need to enter "continue" in chat to continue with the test.
Freelix2000 I'll install this one now and play with it a bit. As far as the blocking the /f leave command, I can probably do that through my permissions. Will they have to do the /f join <faction> command manually or is it automatic? If not, can't they just do /f join and pick whatever faction they want?
kristenrose1999 Its automatic, but I made it force them to run the command at the end of the quiz. I would have made it just add them to the faction, but Factions API is extremely difficult. EDIT: Also, if it doesn't run the command correctly, I may have made a tiny error in the usage of the Bukkit API for running commands, just let me know and it would be an extremely easy fix that would literally take 3 times as long to make a download link for than to actually fix it. =P
Freelix2000 Okay, that's fine. I did the config wrong, that's for sure. This is what I had. What did I do wrong? Code: question: What is your favorite color? answers: '1': Black '2': White '3': Red '4': Gold factions: '1': Demons '2': Alliance '3': Horde '4': Angels question: How would you describe the people you hang out with? answers: '1': Drama free '2': Rebellious '3': Kind and sweet '4': Bad factions: '1': Alliance '2': Horde '3': Angels '4': Demons question: How would you describe yourself? answers: '1': Drama free '2': Rebellious '3': Kind and sweet '4': Bad factions: '1': Alliance '2': Horde '3': Angels '4': Demons question: What is your favorite type of Minecraft server? answers: '1': Hunger Games '2': Plots '3': Factions '4': Super Heroes factions: '1': Demons '2': Angels '3': Horde '4': Alliance question: What is the worst trait a person can have? answers: '1': Mean '2': Dramatic '3': Nice '4': Annoying factions: '1': Angels '2': Alliance '3': Demons '4': Horde
kristenrose1999 I'll do it for you. =P One minute. EDIT: Actually, here's an example instead... Code: SampleQuestion: question: Which faction would you like to join? answers: '1': Faction1 '2': Faction2 factions: '1': Faction1 '2': Faction2 SampleQuestion2: question: Which faction would you like to join? (2) answers: '1': This is the first answer! '2': This is the second answer! factions: '1': Faction1 '2': Faction2 SampleQuestion3: question: Which faction would you like to join? (3) answers: '1': This is the first answer! '2': This is the second answer! factions: '1': Faction1 '2': Faction2 So you just need to have the "SampleQuestion:" before each question, it doesn't actually have to be "SampleQuestion" though, it doesn't matter what it is but it must be different for each question. Its just a Bukkit config API thing... And be sure that the two-space indentions are as in the example too, so you may have to add some indents. Use 2 spaces, not tab.
Freelix2000 I get it. Thanks! I'll change the config now. Freelix2000 Okay so I have a player that says he got Angels but didn't join the faction. D: EDIT: My fault. I didn't have one of my staff create the faction. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Freelix2000 Of course. I must warn you, though. The server is a mess right now. We just started transitioning to a faction server. All we really have to do is paste the other three bases and delete the world we used for spawn though. Pretty close. Anyway, here's the IP. 162.216.97.2:25896
Really cool, I love the enthusiasm in all of you. This is inspiring, and the idea is a blast! TIP: /f open (faction names) That would mean you would remove /f join from users. If the plugin sudos a user to do /f join, you could replace it with /f join (player) (faction). The reason I suggest is because it didn't work. It said "this Faction requires invitation." I'll come back when it's ready. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
cometear Thank you for the complement! Are you saying that the plugin would automatically put it /f join <player> <faction> or would I do it manually? I'll get all the leaders to open up the factions. If there is a way to do that and create factions through the config, I'd love to know how. If we did open the factions, why would /f join have to be removed from players? This is my first server. I bet you can tell. (; Freelix2000 I'm having a problem. Any user can make a faction. It isn't in permissions. Did you include that in the plugin? EDIT by Moderator: merged posts, please use the edit button instead of double posting.