Search found 65 matches
- Sat Apr 28, 2012 2:13 am
- Forum: Other
- Topic: Random stuff at login?
- Replies: 2
- Views: 874
Random stuff at login?
Everytime I login to certain servers, it prints out some crazy stuff automatically. Something like this: u00a74u00a75u00a73u00a74v|1 It has come to my attention that this doesn't happen on server that my plugin isn't installed, but it also doesn't happen if I don't have WorldEditCUI installed. Also,...
- Wed Apr 25, 2012 4:48 am
- Forum: Other
- Topic: How to delete a node and all sub values? (Bukkit of course)
- Replies: 10
- Views: 2059
Re: How to delete a node and all sub values? (Bukkit of cour
Jeeze, never thought to try getKeys(true), I always set it false or left it out entirely (which changed the varible data type), and the .remove() wasn't supported for that data type. But yes, I'll try it. I do somewhat need to save back to the file though. I like to save the file after every edit so...
- Wed Apr 25, 2012 4:45 am
- Forum: Other
- Topic: Problem with longs (Java/Bukkit)
- Replies: 9
- Views: 1893
Re: Problem with longs (Java/Bukkit)
I'll give that a shot then XD Later when I'm awake enough to comprehend stuff. I know it was the Conf. Section that was null, just didn't think to check for ==null before, thanks @.@
- Mon Apr 23, 2012 3:23 pm
- Forum: Other
- Topic: How to delete a node and all sub values? (Bukkit of course)
- Replies: 10
- Views: 2059
How to delete a node and all sub values? (Bukkit of course)
I have a yml file here: messages: '0': task: Example Normal Task done: false urgency: '1' added-by: CONSOLE '1': task: Example Important Task done: false urgency: '2' added-by: CONSOLE This is for a new plugin I'm writing called BukkitList, and I have a command to remove a task, and to do that, I ha...
- Mon Apr 23, 2012 3:18 pm
- Forum: Other
- Topic: Problem with longs (Java/Bukkit)
- Replies: 9
- Views: 1893
Re: Problem with longs (Java/Bukkit)
Oh yes, I've used that a few times before. Here's the error I was getting: 2012-03-29 08:15:49 [SEVERE] Could not pass event PlayerLoginEvent to Blip org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) at org.bukkit.plugin.RegisteredListene...
- Fri Apr 20, 2012 8:10 am
- Forum: Other
- Topic: Problem with longs (Java/Bukkit)
- Replies: 9
- Views: 1893
Re: Problem with longs (Java/Bukkit)
oh, so just check if a certain node exists than set it to something if not? I'll try to work something like that in O.o I did have a problem with my plugin breaking if there are no users saved in users.yml, so I had to insert a placeholder user and IP address so it didn't spit out console errors eve...
- Wed Apr 18, 2012 7:25 am
- Forum: Other
- Topic: Problem with longs (Java/Bukkit)
- Replies: 9
- Views: 1893
Re: Problem with longs (Java/Bukkit)
Well, I was right XD But it turns out there were a few spots where the node in the yml file just didn't exist or I had it nested under a node that didn't exist @.@ I really gotta stop working on this while I'm half asleep T.T Thanks anyways XD
- Tue Apr 17, 2012 11:04 pm
- Forum: Other
- Topic: Problem with longs (Java/Bukkit)
- Replies: 9
- Views: 1893
Re: Problem with longs (Java/Bukkit)
Made a bit of a dumb mistake XD I don't have a tempban node in my bans file yet @.@ I stared at the code for yours trying to figure out what dafuq was wrong with it T.T But I'll give ya the message, fix that problem, and see if it helps. Message on kick: Disconnected by Server MemorySection[path='Us...
- Tue Apr 17, 2012 4:34 pm
- Forum: Other
- Topic: Problem with longs (Java/Bukkit)
- Replies: 9
- Views: 1893
Problem with longs (Java/Bukkit)
I've decided to implement temp banning. And because the Unix timestamp is easier to use for calculations, I'm using that, and apparently it's best to use the "long" datatype in Java or you'll get some sort of 2038 problem. But having said that, I'm having a problem, and I'm about completel...
- Sun Apr 15, 2012 10:30 am
- Forum: Other
- Topic: Line breaks in event.setKickMessage()? (Bukkit)
- Replies: 1
- Views: 731
Line breaks in event.setKickMessage()? (Bukkit)
I have my LoginListener set to fetch the reason a user has been banned from a file, but for someone who is temp banned and has not waited the duration of that ban, I want to display how long they have left, and the reason under that. Is it possible to insert line breaks into the event.setKickMessage...
- Wed Apr 04, 2012 4:55 pm
- Forum: General Chat
- Topic: Thoughts on Windows 8?
- Replies: 4
- Views: 1059
Re: Thoughts on Windows 8?
I see it's a rather unified consensus so far XD This is quite likely my least favorite OS. I think I'd rather use Windows 98 at this point. I'm hoping at least that they release a desktop version. Throwing out Desktop in favor of tablets seems like a bad idea to me since other companies already have...
- Wed Apr 04, 2012 12:07 am
- Forum: General Chat
- Topic: Thoughts on Windows 8?
- Replies: 4
- Views: 1059
Thoughts on Windows 8?
I just installed the Windows 8 Consumer Preview today. I have to admit, I'm not impressed at all. In fact, I'm quite aggravated at just about everything. It seems like Windows decided to completely ditch the ideas that desktops might possibly want to use this T.T I can't figure out how to close prog...
- Tue Apr 03, 2012 2:39 am
- Forum: Other
- Topic: Why isn't this code to add a node and entry working? (YAML)
- Replies: 5
- Views: 1289
Re: Why isn't this code to add a node and entry working? (YA
Thanks again XD
- Mon Apr 02, 2012 11:01 am
- Forum: Other
- Topic: Why isn't this code to add a node and entry working? (YAML)
- Replies: 5
- Views: 1289
Re: Why isn't this code to add a node and entry working? (YA
Well, I finally found the error! \o/ A friend unintentionally helped me when he logged in when I was looking through the else iterations. XD But as it so happens, in the if loop that was checking if the IP node was already there, previously this: //Add the username under an IP node in users.yml if (...
- Sun Apr 01, 2012 6:11 pm
- Forum: Other
- Topic: Why isn't this code to add a node and entry working? (YAML)
- Replies: 5
- Views: 1289
Re: Why isn't this code to add a node and entry working? (YA
Sure, this is the whole file. I'll try and else iteration and see if that catches anything usefule XD package me.offluffy.blip; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Set; import java.util.regex.Pattern; import org.bukkit.entity.Player; import...
- Sun Apr 01, 2012 5:07 pm
- Forum: Other
- Topic: Why isn't this code to add a node and entry working? (YAML)
- Replies: 5
- Views: 1289
Why isn't this code to add a node and entry working? (YAML)
I have these two blocks of code. I've looked through everything I can think of, and I figure the error has to be in these two blocks somewhere: niceIp is basically the IP address with the dots replaced with underscores so it doesn't jack up the YAML file. //Add the IP to users.yml if it isn't there ...
- Sat Mar 31, 2012 11:37 pm
- Forum: Other
- Topic: What is a good Regex for a valid minecraft username?
- Replies: 2
- Views: 1437
Re: What is a good Regex for a valid minecraft username?
Oh yes. I tried it and it works alrighty to my knowledge XD And the case "insensitive" part I guess has to come from the 'A-Za-z' part. But thanks XD
- Sat Mar 31, 2012 9:37 am
- Forum: Other
- Topic: Permission help
- Replies: 1
- Views: 733
Re: Permission help
It looks like the "player" variable is initialized after that if statement, so at that point, the plugin doesn't know what "player" is.
Just try moving line 27 up above line 18 somewhere XD
Just try moving line 27 up above line 18 somewhere XD
- Thu Mar 29, 2012 9:37 pm
- Forum: Other
- Topic: What is a good Regex for a valid minecraft username?
- Replies: 2
- Views: 1437
What is a good Regex for a valid minecraft username?
So I have this piece of code: Pattern pattern = Pattern.compile(""); I just need to know a way to check to see if a given string matches what is considered a "valid" username for legit minecraft clients. So far I know that it can contain up to 16 characters, only having alpha-num...
- Thu Mar 29, 2012 8:45 pm
- Forum: Other
- Topic: Bukkit - How can I differentiate from the Console?
- Replies: 2
- Views: 873
Re: Bukkit - How can I differentiate from the Console?
Thanks! This seems to work perfectly XD
- Thu Mar 29, 2012 8:54 am
- Forum: Other
- Topic: Bukkit - How can I differentiate from the Console?
- Replies: 2
- Views: 873
Bukkit - How can I differentiate from the Console?
I noticed on the plugin tutorial page (on bukkit) that to make sure that a command is or isn't sent by the console, you just check to see if it is/isn't an instance of a Player. Makes enough sense to me, but while I was working on my plugin, I didn't want the console to be able to use the command to...