Spigot Plugin Development - 26 - RandomTP Plugin

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2024

ความคิดเห็น • 27

  • @Alanel745
    @Alanel745 6 หลายเดือนก่อน +1

    1:26 analog horror:

  • @andr3318
    @andr3318 4 ปีที่แล้ว +2

    uf, the part of filtering blocks doesn't work on 1.16.1, help would be apreciated
    ...

  • @woesgms8518
    @woesgms8518 5 ปีที่แล้ว +4

    Absolutely loving all of these videos and the way you explain things, by any chance would you be able too go over teleport commands such as teleport asking and teleporting other players to yourself? Keep up the great work!

    • @KodySimpson
      @KodySimpson  5 ปีที่แล้ว +4

      Ill definitely incorporate that into a future plugin!

  • @김도훈-f7w
    @김도훈-f7w 3 ปีที่แล้ว +1

    How can I do if I want only first time to join server?

  • @mmnmnmu5442
    @mmnmnmu5442 4 ปีที่แล้ว +3

    Ik this video is a year old, but I'm getting an error saying "bound must be positive. " any help would be appreciated

    • @KodySimpson
      @KodySimpson  4 ปีที่แล้ว +1

      Hop into the discord

  • @coinbotproduction2423
    @coinbotproduction2423 2 ปีที่แล้ว +1

    20:34 Wouldn't it be easier (and cleaner) to do it this way?:
    if(!isLocationSafe(random_loc)){
    player.sendMessage("Teleport Failed");
    return generate_location(player);
    I am kinda new to Java so propably I am wrong...
    Have a good day :D

  • @Adventure_Craft
    @Adventure_Craft ปีที่แล้ว

    ironically i came up with an idea to use this function as one of the mechanics of my first plugin, ive watched like the first 5 videos & decided to check out some of the other titles down the line.
    stumbled across this like ok this will help, 5 mins in im like ohh daum this sounds exactly what im trying todo. (i call it memory loss) mechanic for my plugin its not all but like half maby of what i gotta do.

  • @maynmane
    @maynmane 3 ปีที่แล้ว

    How to add cooldown on the rtp command?

  • @gorushkin4959
    @gorushkin4959 4 ปีที่แล้ว +2

    Your tutorials are great thank you!
    But why do you need block above? Because we teleport at the highest block anyway

    • @noah5592
      @noah5592 2 ปีที่แล้ว +1

      That's a good point!

  • @xdrfantasyxxx5304
    @xdrfantasyxxx5304 4 ปีที่แล้ว +3

    /rtp /wild plugins always teleport me to same place and spot. Please help me. I have issues and errors.

  • @deepboylftcraft
    @deepboylftcraft 2 ปีที่แล้ว +1

    What is the Idea version?

    • @KodySimpson
      @KodySimpson  ปีที่แล้ว

      I always just use latest

  • @ItsGoldBolt
    @ItsGoldBolt 5 ปีที่แล้ว +22

    37 minutes to explain a 5 minute job holy f

    • @Spencer-xj3pi
      @Spencer-xj3pi 4 ปีที่แล้ว +2

      the keyword there is explain ;)
      Yes it simple to do but to explain it to people with little to know java/spigot API experience isn't as simple

  • @SavageOfficialYT
    @SavageOfficialYT 4 ปีที่แล้ว

    Need link
    for download can u pls ?

  • @galacticdragon7398
    @galacticdragon7398 5 ปีที่แล้ว +1

    Can you please next time make a tutorial on entities.

  • @RAYCUN_
    @RAYCUN_ 3 ปีที่แล้ว

    Hi! How are you? very good video and explanation, could I consult you or ask you if there is a way to do the same, but without a command, but to be carried out with a button? Thank you very much in advance and I hope my English is understood, greetings from Argentina!

    • @beelz1042
      @beelz1042 3 ปีที่แล้ว

      I think you could do that with a listener , look for the name of the event for interacting with a block then check that this block is a button and finally do what the video showed , if you want some more in depth help message me on discord dramatication#9944

  • @drneox531
    @drneox531 4 ปีที่แล้ว +1

    Don't use static! You should use public and get it with RandomTP randomtp = new RandomTP();

    • @drneox531
      @drneox531 4 ปีที่แล้ว +1

      But good job! And if you get values from the config load them into a private variables in your main class (onEnable or Constructor). You can make a getter and setter for each value ;D
      It's resource-saving
      .

  • @51y47
    @51y47 5 ปีที่แล้ว

    Hey man great tutorial, I know this vid is already like 7 months old but since I used your tutorial i figured you would know the fix to this.
    Everything is working fine it's just that, when a player teleports randomly he is only teleported to positive coordinates ( + ) and is never teleported to negative ones ( - ).

    • @MrFunny01
      @MrFunny01 4 ปีที่แล้ว +1

      Change int randomValue = random.nextInt(25000) * (random .nextBoolean() ? -1 : 1);

  • @rcraft6594
    @rcraft6594 ปีที่แล้ว

    my server crashed from this, lol