Posts by james1bow

    I have the plugin on my server and it's running fine so far.

    My question would be whether the area for querying whether someone is in the portal could be expanded?

    It seems to me to be very small and that you have to enter exactly a certain point :thinking:

    as soon as creating areas via api work correctly i will change how its triggered. for now i added the portal assist witch add a small collider to the portal. just walk into it until it stops you and your in the center.

    That's weird, I'll take a closer look at this issue :thinking: Thanks for the log!


    With restart, do you mean an actual server restart? Or reloading the plugins via "reloadplugins" or "rp" command?

    the reloadplugins command has no effect, i have to restart the actual server,game for sp for it to work if it would help i can get you a cleaner log

    also if i list areas before restart with an api created area i get a game crash!


    Files

    • Player.log

      (81.46 kB, downloaded 228 times, last: )

    seems areas created using the api always returns the same areaId


    both methods return same id for api areas until the sp game/server is restarted

    , areas created with creative mode return the correct areaId.

    THIS PLUGIN IS JUST FOR FUN!!!! YOU CAN USE IT ON YOUR SERVER BUT I WOULD NOT!!!

    was bored so made a small gravity plugin.


    /gravity default sets your gravity

    /gravity VALUE value has to be a float (-5.0f) default gravity is -9.81f.

    /gravity all default sets all players on the server gravity to default

    /gravity all VALUE sets all players on the server gravity


    entering other commands that start with /gravity can/will cause an error!


    again just for fun i would only use on single player worlds!


    ps.

    if you dare enter /gravity 999.99f.

    Files

    • gravity.zip

      (2.01 kB, downloaded 217 times, last: )

    A mail plugin!


    to install:

    extract the zip file to your plugins folder!


    updates:

    1.1 fixed issue with data base not being created.


    to use:

    type /Mail Box to open the ui.

    type /Mail playerlist for a player list in chat.

    type /Mail help for help


    players can also email themselves (for saving coords and such)




    Youtube video here!



    future plans:

    ability to attach a single item to the mail.

    add a place-able mail box to check for letter/packages.

    new mail notification

    admin mail all function



    Terms of use.

    1. Do not edit my code.

    2. You are free to use any of my plugins.

    3. You may list my plugins in server presentations on the rising-world forums with no mention.

    4. You May NOT integrate instructions, images, ect for my plugins on your own websites/forums if,

    A. Your website/forum has direct links to E-commerce.

    B. Your website/forum advertises rising world server hosting services.

    5. You CAN integrate instructions, images, ect for my plugins on your own websites/Forums if,

    A. Your website/forum has no direct links to E-commerce.

    B. Your website/forum does NOT advertise rising world server hosting services.

    C. You Must mention my name(James1Bow) OR make available a direct link to the download(Rising world forum link).

    6. You can NOT offer/host downloads of my plugins.

    Note:

    I design/code plugins for the fun and joy of learning. I have NEVER asked asked for compensation.

    I cannot allow people to make money from my works. Sorry to everyone this may effect.

    Files

    • WTGMailV1.1.zip

      (17.99 kB, downloaded 763 times, last: )

    is the Server.getAllAreas() not working? i beleive my code is correct but keep getting a null for start position.


    Java
    public void showareas(Player player){
    Area areas[] = Server.getAllAreas();
    for (Area area : areas) {
    Area newa = new Area(area.getStartPosition(),area.getEndPosition());
    Area3D toshow = new Area3D(newa);
    player.addGameObject(toshow);
    }
    }

    However, this is a big area (as many players areas are on his servers) and so far I've only been able to make 6 claims, which only cover one full house, part of another house and a farm plot. With the points going up each time (think its now 120 to the next claim) this is going to take a very long time.

    i believe yahgiggle mentioned adding a way for admins to give points in the future. for the time being the owner of the server can download db browser for sqlite. open the database in write mode(database.db in the plugin/worldname folder) and go to the points table and add points to the points column. then file/write changes. but, i cannot stress this enough backup the database first!

    As an example, let's take the plugins for the Rust game: in it, the plugins for teleporting home and teleporting to a saved point use different commands without a prefix. And the data about the author of the plugin is registered inside the plugin. Extra prefixes deprive of convenience when using the plugin.


    I do not think that the /sethome and /home commands will be used by other plugins that do not relate to teleport.

    using a prefix is the way to go. when a /command is used it triggers an onplayercommand method for all plugins. i ran into an issue where it was reading from the database from 2 of my plugins for every command entered. a simple fix was to add a prefix. so something like this:


    Java
    //plugin 1
    if (cmd[0].equalsIgnoreCase("/this")){
    get that database connection.
    } if (cmd[1].equalsIgnoreCase("database")){
    do something with this database
    }else{return;}
    }else{ return;}
    Java
    //plugin 2
    if (cmd[0].equalsIgnoreCase("/that")){
    get that database connection.
    } if (cmd[1].equalsIgnoreCase("database")){
            do something with that database
            }else{return;}
    }else{ return;}

    in my case it was just getting a database connection for both plugins. but if your doing something more complex you can cause errors in other plugins.

    with the above code it prevents any errors that may happening.

    also with the api being new there is alot of development going on, the odds of having multiple plugins using similar commands is quit high. in my case there will be a /sethome player position, /sethome area, and /sethome area npc so my prefix's will be /npc, /player, /Area fallowed by the sethome.

    Tested it in single play...I like it a lot... :love:


    would it be possible for the menu to open as soon as you enter a portal?

    What would be optimal if this is a restricted menu that only offers the travel options ...

    for the owner of the portal possibly with a cancel button so that he can then edit the portal with "U" (the complete menu). :thinking:

    the menu auto open is possible but it would have to check vector position every time the player moves then compare this to the database. single player this would be fine, but if you had 20 ppl running around a server you would run into database locked issue as you can only have one connection at a time to an SQLite database. i will be redoing the plugin once the api gets an update.

    A small weather hud. displays current temp(not working, i guessing api limitation.), current weather and next weather.



    To Install:

    extract WTGWeatherHud to your plugins folder.


    Commands:

    /Weather help to display help

    /Weather Hide to hide the hud

    /Weather Show to show the hud


    Future plans:

    config file to set update time and hud position.


    To update:

    extract WTGWeatherHud to the existing plugin folder.


    Update 1.2:

    fixed bug (command's triggered sqlite connection for WTGTimeHud).