Uhhhh... you could just use regex codes to add formatting in one line like so: String string = "&4Some &ostring&r &6with &afancy &9formatting&f";...
Thanks! :)
Any help? It's been a day and nobody posted. :(
This seems like a pretty straight-forward thing, but I couldn't find anything about it. Say I have a config file like this: path: goes:...
*facepalm* I'm using the saveConfig() method I made in my User class...
travja Sadly that won't work as the method saveDefaultConfig() is part of the JavaPlugin class, and my User class doesn't extend it. I tried to...
I added a null check in the reloadConfig() which prints out "Data is null!" into the console, and it didn't get printed, so data isn't null. Any...
Well, the PlayerListener class calls the "createUser()" method in the main class, which creates a new User object thus calling it's constructor...
I am writing this plugin which requires custom configuration files for each player (named "player-name.yml") and I can't get the default values to...
That would replace: "I like this & that!" to "I like this ยง that!" :p
As of right now you'll have to open the file using any text editor, in a future update it will most likely be possible to do it in-game. Yes.
Well, yes and no. You'd have to parse parts[2] into an Integer because it's currently a String. To do that you use a simple method: int a =...
You could split the string at the "." and then use the different parts. For example, consider this: String permission = "stone.iron.100";...
As far as I'm aware, there is no distance() method for a Player object...
Well... this will be one of those facepalm moments, but the command is /sl config or /superlog config. This has been confusing to others in the...
Updated to CB 1597 (Minecraft version 1.0) and fixed the permissions bug.
Here's an updated 1.0 version of my plugin, SuperLog. Check out the thread in my signtaure for more details. Basically, it logs without databases....
This plugin is great, fantastic! If you can, try to add a configuration file with a list of disabled/enabled commands. That way, a server admin...
Well, Minecraft doesn't log chest openings/destroying by default, you'd need a plugin. My plugin, SuperLog, which can be found in my signature,...
It's great that you show people what code they need, but you don't explain anything. How are people supposed to learn what this does if there are...
Separate names with a comma.