i need to use this to see who have agreed the rules ( they pres a button and a signal going to command blocks messaging online staff)
can i have some more detail? do you mean if the press a button or type a command it will tell all the admins online that "(Player's Name) has agreed to the rules"? or will the name be stored in a .txt file?
the name should be stored in a .txt file can anyone do it? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
The button sends a signal to command blocks then they do different commands One of them broadcasts that the player that press the button agree to the rules
Of course it can be made, really simply actually. You just want something like this: /pluginname add playernamehere /pluginname remove playernamehere and it will add or remove that player's name from a .txt file, and that's it?
yes but it have to be done from the console (or it wil ned permisions) can someone code it? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I'd like to see you do this with 15 lines max. Yes, I know it's really simple, still a bit more than 15 lines, depending on your coding style.
I'll see what I can get done tonight OP, is it alright if it saves into a .yml file instead? Or does it have to be .txt? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I know, but I was wondering if he had a specific reason for it to be .txt. Not hard to do it either way though.
OK, it's done. You can download it here: <Edit by Moderator: Redacted mediafire url> Disclaimer: This plugin has not been verified by Bukkit staff, use it at your own risk. Commands: /roster add some text you want to add /roster remove some text you want to remove Spaces in the text are supported. Capitalization IS important, it will not ignore caps for now. Permissions: Roster.add Roster.remove The roster is saved at /plugins/Roster/roster.txt Example usage in a command block: /roster add @p /roster remove @p To have it broadcast that a player has been added, use a 2nd command block. It's still very alpha, message me if anything goes wrong/a feature needs to be added.
[quote uid=90573785 name="Mike724" post=1523376]OK, it's done. You can download it here: <Edit by Moderator: Redacted mediafire url> Disclaimer: This plugin has not been verified by Bukkit staff, use it at your own risk. Commands: /roster add some text you want to add /roster remove some text you want to remove Spaces in the text are supported. Capitalization IS important, it will not ignore caps for now. Permissions: Roster.add Roster.remove The roster is saved at /plugins/Roster/roster.txt Example usage in a command block: /roster add @p /roster remove @p To have it broadcast that a player has been added, use a 2nd command block. It's still very alpha, message me if anything goes wrong/a feature needs to be added.[/quote] can you also add so you can search for a name that is in the roster.txt file?
btw the server crashed 2 times in under 1 h after i installed it here is crash reports: crash-2013-01-28_18.53.44-server.txt crash-2013-01-28_19.02.12-server.txt
Is it possible that you can send me the roster.txt so I can test it on my own server and see if it crashes there? I haven't noticed any problems like that. That log isn't detailed enough, the plugin doesn't actually touch the roster.txt file until the /roster add or /roster remove command is invoked. So can you tell me what command is being run that causes the error? Do you mean a command like /roster contains some text here Which will tell you if the roster.txt contains that text
in the roster.txt file it only stands my ingame name (sverre26) can you also add the /roster contains command
Is there any reliable way for you to make the error happen? Like using one of the commands, etc. If not, it is likely another plugin causing the issue. This plugin doesn't really do anything until a command is called. Yeah, I will work on doing a /roster contains command. I'll try to get it done ASAP. For now, let's move this to a PM/conversation so we can stop bumping this topic.