Search found 65 matches
- Wed Mar 28, 2012 6:51 am
- Forum: Other
- Topic: How do I add a YAML node with periods in it?
- Replies: 4
- Views: 1109
Re: How do I add a YAML node with periods in it?
I actually have that also in the same file XD The reason I have it both ways is to be able to cross-reference the both of them relatively easily. Prior to this plugin, I'd have to search for someone's name in the server log, then find all the IPs they used, then go back through and search for each I...
- Wed Mar 28, 2012 6:50 am
- Forum: Other
- Topic: How do I add a YAML node without overwriting the others?
- Replies: 4
- Views: 1022
Re: How do I add a YAML node without overwriting the others?
I posted it up on dev Bukkit XD Some people seem to think it's a good idea. And only one problem so far, which I suspect is a problem with someone editing the YML file. Anywho, here's a link if you want to take a gander => blip! And hell, I might have time to do ya some graphics. Just ask XD I have ...
- Sat Mar 24, 2012 8:57 pm
- Forum: Other
- Topic: How do I add a YAML node without overwriting the others?
- Replies: 4
- Views: 1022
Re: How do I add a YAML node without overwriting the others?
Well, that works well enough XD Between that and the other post about YAML nodes with periods, I think the plugin is about ready O.o I reckon I might upload this to bukkit somewhere soon XD Might test it out a bit with more users first though. And before I do all that, mind if I credit you and/or th...
- Sat Mar 24, 2012 8:27 pm
- Forum: Other
- Topic: How do I add a YAML node with periods in it?
- Replies: 4
- Views: 1109
Re: How do I add a YAML node with periods in it?
Yeah, I tried wrapping the IP in single-quotes, but it still breaks it up into sub-nodes. So I suppose I will try the string replace method instead XD
- Sat Mar 24, 2012 5:32 am
- Forum: Other
- Topic: How do I add a YAML node without overwriting the others?
- Replies: 4
- Views: 1022
How do I add a YAML node without overwriting the others?
I have this YAML file: [syntax=text]User: root: - 127.0.0.1[/syntax] And I want to be able to add a node under the "User" node (at the level where "root" is at), but when I do that, it overwrites previous nodes. I'm about 90% sure this is the wrong way to do it because I tried th...
- Sat Mar 24, 2012 12:10 am
- Forum: Other
- Topic: How do I add a YAML node with periods in it?
- Replies: 4
- Views: 1109
How do I add a YAML node with periods in it?
So I have YAML file with a list of addresses such as this: [syntax=text]Address: 127.0.0.1: - administrator - root - herobrine 192.168.0.1: - admin - notch - herobrine[/syntax] Now when this file is edited with Bukkit's YAML methods, it will nest nodes like this: [syntax=text]Address: '127': '0': '0...
- Fri Mar 23, 2012 11:43 pm
- Forum: Other
- Topic: How can I use the getHostAddress() correctly?
- Replies: 9
- Views: 1749
Re: How can I use the getHostAddress() correctly?
So, I tried using the PlayerLoginEvent, and for now I just had it set up to get the ip (getAddress().getAddress().getHostAddress()) and to get the player name, and then log the player and IP. That's it. However, when I do that, I get this mess: [syntax=text] 2012-03-23 05:33:53 [SEVERE] Could not pa...
- Fri Mar 23, 2012 8:28 pm
- Forum: Suggestions
- Topic: Breadcrumbs!
- Replies: 6
- Views: 2992
Re: Breadcrumbs!
I like it already! It fits the theme of your home page a lot better. Although I noticed there is no Support forum section for Java. Or Other O.o And if CSS3 gets uniform support (because IE is always the slow child), there's a lotta potential for making it look really awesome. Kudos to you.
- Fri Mar 23, 2012 8:25 pm
- Forum: Other
- Topic: Pagination for an MC Plugin
- Replies: 4
- Views: 950
Re: Pagination for an MC Plugin
Oohhhh .-. I can definitely see that becoming a problem for a lotta devs. So they'll probably end up creating their own or they'll annoy Bukkit into reinstating that XD That'll throw a monkey wrench in the tutorial though, I bet.
- Fri Mar 23, 2012 8:24 pm
- Forum: Other
- Topic: How can I use the getHostAddress() correctly?
- Replies: 9
- Views: 1749
Re: How can I use the getHostAddress() correctly?
Thanks XD I'll definitely be crediting you and/or this forum when I compile a final version of this plugin XD If I even release it. Really just wanted it for the server I manage. And I don't trust the other plugins that have a tendency to mistakenly ban people and you have a buncha people trying to ...
- Fri Mar 23, 2012 8:21 pm
- Forum: Suggestions
- Topic: Breadcrumbs!
- Replies: 6
- Views: 2992
Re: Breadcrumbs!
No problem! I've been thinking about how to make my own forum using PHP and SQL, but I haven't really plotted it out much. Databases would be a mess. Complete and utter mess. Although I have a computer forensics teacher who made his own forums because he also thought PHPBB was messy. So I got the id...
- Fri Mar 23, 2012 8:18 pm
- Forum: Other
- Topic: Pagination for an MC Plugin
- Replies: 4
- Views: 950
Re: Pagination for an MC Plugin
Awesomesauceyness. I messed around in 1.2.4 a bit. With a relatively short list (that would expand past the previous chat box length), I have to repeat the list about 6 times before it starts cutting off and won't scroll any further. So I won't worry about it until that becomes a problem. I think I ...
- Fri Mar 23, 2012 8:16 pm
- Forum: Other
- Topic: How can I use the getHostAddress() correctly?
- Replies: 9
- Views: 1749
Re: How can I use the getHostAddress() correctly?
Curses and blasphemy. 'Tis not. Although I suppose I can put it in online for the duration of my testing. I will want to plugin to work for server that don't use online mode though (such as the one I actually manage outside of my test server). Is it possible to use the PlayerLoginEvent instead? I've...
- Fri Mar 23, 2012 7:43 pm
- Forum: Suggestions
- Topic: Breadcrumbs!
- Replies: 6
- Views: 2992
Re: Breadcrumbs!
Indeed. I've had my share of being flamed for the various things you shouldn't do on forums. I guess reading one post isn't too much to ask when I actually want to have a helpful response.
- Fri Mar 23, 2012 7:57 am
- Forum: Suggestions
- Topic: Breadcrumbs!
- Replies: 6
- Views: 2992
Breadcrumbs!
I love this forum, by far my favorite resource for code oddly, but I do have a slight problem when I want to go back to the Other section and I instead have to go back through the Board Index (in the case where my back button is disabled, like when I open a page in a new tab). Any maybe breadcrumbs ...
- Fri Mar 23, 2012 12:10 am
- Forum: Other
- Topic: How can I use the getHostAddress() correctly?
- Replies: 9
- Views: 1749
Re: How can I use the getHostAddress() correctly?
So I've been trying this, but I've having a problem where my PlayerPreLoginEvent doesn't want to function at all. I have it registered in the main class, and it's set up almost just like the PlayerLoginEvent short of the code executed in the listener. I don't know why, but I can't even get it to log...
- Thu Mar 22, 2012 9:10 pm
- Forum: Other
- Topic: Pagination for an MC Plugin
- Replies: 4
- Views: 950
Pagination for an MC Plugin
So, after getting a list of stuff that is potentially too long to view in the 1.2.3 minecraft chat box, I was wondering if it'd be necessary to paginate that list. The likes of which I have no clue how to do. I believe MC 1.2.4 has made the text history scrollable, but I'm not sure about that yet. E...
- Thu Mar 22, 2012 8:55 pm
- Forum: Other
- Topic: YAML Configuration, Remove Item From List
- Replies: 6
- Views: 1208
Re: YAML Configuration, Remove Item From List
In the process of trying that idea, I think I may have found the problem. While I told the plugin to get the node "Users", the node in the YML file was actually labeled "User". Prolly the issue. But at any rate, I'll try that again. Also have to add a string to that since the sen...
- Thu Mar 22, 2012 4:22 pm
- Forum: Other
- Topic: YAML Configuration, Remove Item From List
- Replies: 6
- Views: 1208
Re: YAML Configuration, Remove Item From List
So when I'm setting up the path for a YAML file (such as how I have "Users" in that example), would I consider capitalization when using any of those methods? Should it be getStringList("Users") or just leave the nodes all lower case i.e., getStringList("users")? I have...
- Wed Mar 21, 2012 5:59 pm
- Forum: Other
- Topic: YAML Configuration, Remove Item From List
- Replies: 6
- Views: 1208
Re: YAML Configuration, Remove Item From List
lmao, thanks a lot XD May end up asking even more questions. So far I like this forum better than Google as far as that is concerned @.@ edit: I actually already have a rather related question! XP Given that example above, how could I retrieve a list of of second-tier level items without their assoc...
- Wed Mar 21, 2012 7:30 am
- Forum: Other
- Topic: YAML Configuration, Remove Item From List
- Replies: 6
- Views: 1208
YAML Configuration, Remove Item From List
Sorry, another stupid question: How can I remove a single node from a YAML file? i.e.: [syntax=java]FirstTier: SecondTier: - TierItem1 - TierItem2 - TierItem3[/syntax] How might I go about removing one of those TierItems and leave the rest? While I'm at it, I suppose I should also ask how to add a t...