mc.blockdrop.org

?

Players Online

Protection Crystal is a S C A M

Discussion in 'Factions' started by XRaygonFFS2000, Jan 11, 2019.

Thread Status:
Not open for further replies.
  1. XRaygonFFS2000

    Joined:
    Jan 5, 2019
    Messages:
    149
    Likes Received:
    6
    some time ago i was in pvp and killed a random person *his name doesnt count since hes not counted*and then i got kicked,then after i logged back in it said `u died' and i respawned.No wonder i had a s20 axe with
    ancient prot and it didnt returned to thew inventory,then some time after a fall back happend and i returned to the time when i died,it still didnt came back.SO PLEASE FIX THIS ANNOYING ANCIENT PROT GLITCH WHEN U GET PVPLOGGED AND THE ITEM DOES NOT RETURN TO YOUR INVENTORY
    @Kasper_King
    @iiDuckUnicorn
    @Doobaa2000
    @vond123
    @elelmon
    @MadisonHater101
    @Tree182
    @StanTheWombat
    @Mladjaa
     
  2. XRaygonFFS2000

    Joined:
    Jan 5, 2019
    Messages:
    149
    Likes Received:
    6
    in clear words i logged out in ct and died after logging back and didnt received my s20 axe back which had ancient prot
     
  3. xXPrideXx

    xXPrideXx Staff
    Staff

    Joined:
    Dec 17, 2018
    Messages:
    356
    Likes Received:
    64
    When you are kicked/banned or you disconnect after you die, you just lose it since it has ancient prot no one gets it but since you were not online you dont either.
     
  4. imtotiredtothink

    Joined:
    Jan 10, 2019
    Messages:
    97
    Likes Received:
    9
    still a glitch/bug. a line like

    if(player.disconnect == true){
    File playersLostAxe.txt = new file(inPutPlayerName);
    }else{
    // whatever code would normally get executed; you could just put the other code into a method and call it here;
    }

    the problem is if you save it to an array then it would be lost when the server restarts, so you end up making a file with a list of players that lost there axes; you could theroratically have it iterate over the file every time a player connected but that would make spam bots really effective, a better way would to have a command that goes like /protClaim that executed

    String inputPlayer = player.getName();
    if(inputPlayer.indexOf(playersLostaxe.txt) != -1){
    int itemLoc = playersLostaxe.txt.indexOf(inputPlayer) + inputPlayer.length() + 2;
    // how ever minecraft gives the player the item back
    }

    i think the reason it glitches out is because it goes like this ( in theory )

    if(player.getName().state.ALIVE == false){
    while(true){
    if(player.getName().state.ALIVE == true){
    // whatever code gives the player the item back
    break
    } else{
    // timer code, which is to complicated to add to a example
    }
    }
    }


    but if the player leaves the server then player.getName() is null and the server checks to see if player.null.state.ALIVE, but since null is an empty object the loop just keeps checking a null player intel the server restarts in which the loop get removed from memory and the axe is gone.

    full disclaimer, this is snippit code and i just used filler methods of what i think the methods for getting that sorta information, if your intrested in the actual code ya'll need to go to the bukkit java docs, i cant since im currently on university wifi
     
  5. XRaygonFFS2000

    Joined:
    Jan 5, 2019
    Messages:
    149
    Likes Received:
    6
    so you mean that when i disconnected the prot crystal code thing-y forgot to create the file in which the server memory could check and give me the axe back
    so in clear words the axe is gone forever?
     
  6. imtotiredtothink

    Joined:
    Jan 10, 2019
    Messages:
    97
    Likes Received:
    9
    i could code the plugin and then upload the source code for tree to go over, and compile/use if he wanted
     
  7. imtotiredtothink

    Joined:
    Jan 10, 2019
    Messages:
    97
    Likes Received:
    9
    when the server builds the minecraft world/ program everything inside of it is a object, those objects exist intel some code inside the objects say " i no longer exist", when you disconnect/kicked/banned, you suddenly dont exist anymore, so the pointer (address in memory) suddenly points to a object thats no longer there.
     
  8. imtotiredtothink

    Joined:
    Jan 10, 2019
    Messages:
    97
    Likes Received:
    9
    a'l put it this way, imagine you put a flower pot on top of a really big box; as long as the box doesn't get wet it wont collapse and break the pot; but out of nowhere god said " that box doesn't exist anymore" what happens to the flower pot. does the universe let the pot fall or does it just sit in mid air. in this example the universe isn't sure what to do and the pot just ceases to exist as well.
     
  9. TotallyInsane

    TotallyInsane New Member

    Joined:
    Nov 30, 2018
    Messages:
    26
    Likes Received:
    0
    RIP your super noob again and broked ;V
     
  10. XRaygonFFS2000

    Joined:
    Jan 5, 2019
    Messages:
    149
    Likes Received:
    6
    shut up totally ur noob too i rekted u 10 times in this server
     
  11. Ethan3478

    Ethan3478 New Member

    Joined:
    Aug 3, 2018
    Messages:
    16
    Likes Received:
    1
    if your not online and in combat and die no one gets the weapon bc it detects you have been banned

    Username:Ethan3478 Faction:Sofa Factions Rank: Lord
    YouTube:DeeshCC__
     
Thread Status:
Not open for further replies.

Share This Page