Posts by yahwho

    One of my biggest issue right now is figuring out exactly which API package to import to get my code to stop flagging me in NetBeans.


    Take this bit of code in Netbeans, I have not imported the Player class yet.



    If you click on the class declaration (in this example, the Player class (underlined in red)), hold down the Alt Key and press Enter you will see the following options pop up.



    The top 'fix' is always the "Add import for X" (if it exists).


    The Alt + Enter menu is a fantastic tool you should get used to using.


    Hope that helps.

    Hehe no that's fine, and it's always great to learn, and after what you've just said I'm assuming that you're playing with Java in order to learn new stuff. :nerd::thumbup:


    Yes, I said we "We call them 'methods' in Java " but that wasn't just me being silly/facetious. There are are Methods, Subroutines, Procedures and Functions (afaik) in programming. And they are not the same thing.


    Knowing the terminology will help you Google. For example,


    "What's the most efficient method to iterate a 3D array in Java" will yeild better results than a "What's the most efficient subroutine to iterate a 3D array in Java".


    🖖

    The old game engine was JMonkey written in Java. The new game engine is Unity written mainly in C#. Syntactically very close to each other.


    The old game had an option to use MySQL as a DBMS instead of SQLite. The new version only supports SQLite. The game that is, not the plugins.


    You still write plugins with Java.


    And of course, you can still use any DBMS you want with your plugin, Microsoft SQL Server, MySQL, Postgress, SQLite, MariaDB (those are probably the most common) you could probably even use Microsoft Access 😳


    There are dozens more to choose from, but going off-piste is probably not recommended.

    You can use any one of them.


    Ant, Mavern, and Gradle are just frameworks. You can write Java applications in any one of them.


    Here's a nice breif explainer video (30 min).



    Personally I use Ant, but Ant is old, like me, lol, I've been coding in Java since 1.2 (I don't like change - I've only just stopped using Vectors :crazy:).


    I believe most people these days would say go with Gradle.

    In my opinion, the best volunteer work is done by supporting the games online presence.


    Posting on social media, starting a facebook group, discord group, youtube videos, twitch videos, developing plugins, fansites, content writinging for the wikis I believe there is a german one (URL?) as well as an english one I setup but really don't have the time to write stuff on (https://wiki.rising-world.co.uk).


    This kind of support work also means you can drop in and out as your rl demands. :D

    Surely this would be for serious offenders, i.e. clear perma ban offenses?


    I once had someone upload nazi flags and pornography as posters, this is premeditated and serious offense.


    An offense I think (at least I hope) no servers would tollerate.


    Someone being a bit of a fool, maybe due to intoxication, sure ban them from one server for 3, 14 days, but to impose this ban on all servers would be overkill imho.


    As always, discussion is a good thing :)

    This is a great idea yahgiggle


    UID of admin that banned player, reason to be displayed to player, reason to be displayed to server admins, date of ban, classifications (GRIEFING, RACISM, SEXISM, HACKING, DOXING... etc), Last known IP address, more?


    My name suggestion for the plugin (should you be looking for one) - SHEILD - Stop Hostile and Egregious Individuals Live Database 8)

    You should use;

    Java
    String playerUID = player.getUID();


    The UID is a String there is no reason to convert it to a long, unless you are planning on doing mathematical functions on it?


    You are probabaly seeing longs in the Javadoc as Red used to store the UID as a long in the old version.


    Longs aren't needed, the UID, albeit looking like a number, is an ID an not a number.


    If you really wanted to use longs though you can cast a String to a long.

    Java
    long playerUID = Long.parseLong(player.getUID());

    However, I do not recommend casting the UID. ^^

    Oh you got there before I could delete it :D


    Yes, I just tried again and it didn't.


    It had been on... I wonder if there is a cool down period for the furnaces?


    (it was off, and it had cooled down enough for ingots to be removed)