Posts by angriff

A new update is now available, introducing seasons and more!
Latest hotfix: 0.8.0.1 (2024-12-20)

    if your referring to the onEneable() and onDisable() yes they have to be overridden.

    Good at least something is the same. These things are usually something simple like a syntax error. But it is frustrating to get restarted in this fun brain exercise.


    I get a warning that String signText = sign.getText(); is never read.

    Hmm ok I will study that. Seems a little different. My simple routine was to not react to a sign that had other text. But interestingly the erroneous plugin will stop all plugins from working which I do not remember occurring in the Java version.


    So do you or do you not have to use the override?

    It is a test script and it is just detecting a sign and capturing and telling the player his name The Red Example was a healing sign. So it just gave 100 healing but that is harder to test because you always have to be injured.

    I have several routines I either wrote or modified from the old JAVA game that I ran on a server several years ago and gone by. I am trying to pick it back up again and for the life of me cannot get a simple one to run even though it shows no errors and compiles just fine. What is confusing to me is it seems to look fine but will not run Do we still need to @Override


    Most of this came from Red's example in the new API discussions


    public class Angriffsignrework extends Plugin implements Listener {


    @Override

    public void onEnable(){

    registerEventListener(this);

    }


    @EventMethod

    public void onObjectInteraction(PlayerObjectInteractionEvent event){


    // getID();

    Objects.ObjectDefinition def = event.getObjectDefinition();

    //Check if the object we're using is a sign

    if(def.type == Objects.Type.Sign){

    } else {

    //The sign id is stored as "object info", so we can use it to get the sign object

    Sign sign = World.getSign(event.getGlobalID());

    //Always a good idea to check if sign isn't null...

    if(sign != null){

    if(sign.getText().contains("<test>")){

    Server.broadcastTextMessage("Entered if");

    //Get the player who triggered the event

    Player player = event.getPlayer();

    //Send the player a text message

    player.sendTextMessage("Your Name is: " + player.getName());

    //Cancel the event, so the player cannot edit the sign (optional)

    event.setCancelled(true);

    }

    } }

    }

    @Override

    public void onDisable() {

    }

    }

    The default setting is that you lose your inventory upon death. In multiplayer, this is handled through permissions: it's the keepinventory permission in the general section (set it in the default.json permission if you want it to affect all players).


    Alternatively (if you don't want to work with permissions) you could add this line to the server.properties: Permissions_OverrideKeepInventory=True (this overrides the setting for all permissions).


    However, chests should never be affected by a player death, so their content should still be there if a player dies :wat: What do you mean with "both inventories show up on the dead body"? When looting a dead body, the game shows your current inventory and the content of the dead body in a separate window on the right (but there should never be multiple windows like that, for example). I've never seen such an issue before... do you use any plugins?

    So it did not happen to me but to a buddy playing the game. He died and reported he lost his inventory on his body. I helped him find it and he said there was a lot of inventory. He reported that all his inventory for both his body and chest was on his body and nothing was in his chest when he went to go put things away. Yes, I am using one plugin for testing it is a Portals routine.


    I have been writing my own plugins but that is a different problem since it has been so long since I wrote one and my old ones I wrote for the JAVA routine need to be upgraded. Only the one Plugin routine was running. I will try to get him to repeat it but it will likely be tomorrow before he is back online. I will likely turn losing it off as you suggest until I get the server fully working but we will try to repeat it first.


    PS is there a command to take the entire body content and quickly move it into your inventory instead of one item by one item?

    All good, ive been busy doing a missive update for my worldprotection plugin, after ive finished that i am planning to add more options to my other plugins including portals, ;-D

    Did you get the noise from the game Portal? It reminds me of that game. I have not run a server in a few years I will have to get all my programming stuff back up to date for my server. Thanks for this little addition just to get things interesting.

    the portals are what they are, all options are in the portal menu, BTW only admins can place portals so if you hadn't added yourself as a admin then you cannot place them.

    It is working after a fashion seems to be a delay between uses. It is my server so yes I was an Admin. The question was a possible wish list request that is all.

    There are definitely Holstein Bulls though their horns are cut short. In real Holstein bulls can look like Texas Longhorns. But you can sex them with the udder or not. So anyway I guess this is just a fun post now cause they can be aggressive.

    i believe red was interested in making a carvable item block, but it's one of those 'post game engine switch on store page' things. along with that was the plan to import objects, so you could sculpt something in another program and bring in your own custom shape.

    I would pay for that DLC.:D

    are you sure it was actually a bull? cows run away, so maybe you were mistaken.

    Did not know the actual pronouns to use when hitting it but it was black and had horns. I did not remember seeing an udder though I was not sexing the cattle at that time.:crazy:

    Was fooling around with making an intricate detail to a column. This takes a lot of small pieced manipulated by hand. Would interested in finding a simpler solution or if the game has or will have the ability to manipulate a sphere for example like can do to the terrain. That is move small sections in and out of the surface like carving stone.:thinking:

    Male animals (at least bulls and rams) will always attack you, but only if you attack them first (otherwise they're passive). Same about goats (both male and female). This feature is always active ;)

    hmm.. ok well i hit a bull with a hammer on my server and it just ran away so I thought it was a setting.

    Weird when I rebooted my server it went back to just one portal with animation. I would like to be able to change the animation to something less spacey thanks for paving the way.