how to patch enderpearls trhuw world border??

Status
This thread has been locked.
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Ole_plays

Banned
Feedback score
0
Posts
122
Reactions
9
Resources
0
What WorldBorder?
/worldborder set (number)


Do you have a Plugin fot setting Worldborders? please send a downlad link please
 
Banned forever. Reason: Scamming (https://builtbybit.com/threads/ole_plays-scam-report.433883/)

Torciv

Premium
Feedback score
7
Posts
47
Reactions
77
Resources
0
/worldborder set (number)


Do you have a Plugin fot setting Worldborders? please send a downlad link please

I can add you here the code to patch it:

Code:
 public void onPearlClip(final PlayerTeleportEvent event) {
        if (event.getCause() == PlayerTeleportEvent.TeleportCause.ENDER_PEARL) {
            final Location to = event.getTo();

            World w = to.getWorld();
          
            WorldBorder wb = w.getWorldBorder();
            double wbs = wb.getSize();
            double wbsmid = wbs/2;
          
            double locx = Math.abs(to.getX());
            double locz = Math.abs(to.getZ());
          
            if(locx >= wbsmid || locz >= wbsmid){
                final Player player = event.getPlayer();
                player.sendMessage(ChatColor.translateAlternateCodes('&',"&cYou can not go outside the worldborder!"));
                event.setCancelled(true);
                return;
            }
 
Last edited:

Ole_plays

Banned
Feedback score
0
Posts
122
Reactions
9
Resources
0
I can add you here the code to patch it:

Code:
 public void onPearlClip(final PlayerTeleportEvent event) {
        if (event.getCause() == PlayerTeleportEvent.TeleportCause.ENDER_PEARL) {
            final Location to = event.getTo();

            World w = to.getWorld();
          
            WorldBorder wb = w.getWorldBorder();
            double wbs = wb.getSize();
            double wbsmid = wbs/2;
          
            double locx = Math.abs(to.getX());
            double locz = Math.abs(to.getZ());
          
            if(locx >= wbsmid || locz >= wbsmid){
                final Player player = event.getPlayer();
                player.sendMessage(plugin.color("&cYou can not go outside the worldborder!"));
                event.setCancelled(true);
                return;
            }
where do i add this into?[DOUBLEPOST=1517580620][/DOUBLEPOST]
I asked what/which border plugin you use..
/worldborder set (wide)[DOUBLEPOST=1517580635][/DOUBLEPOST]
where do i add this into?[DOUBLEPOST=1517580620][/DOUBLEPOST]
/worldborder set (wide)
idk if i even need a plugin to use that....
 
Last edited:
Banned forever. Reason: Scamming (https://builtbybit.com/threads/ole_plays-scam-report.433883/)

Torciv

Premium
Feedback score
7
Posts
47
Reactions
77
Resources
0
You do not need a world border plugin to set the world border dependent on if you want more features, but the code that guy gave above is for a plugin so you'd need to create a plugin with that event in it.

If you need me to compile it later I can.

The code I have provided above isn't for a plugin. You use the perdefault minecraft worldborder of the server.
There is no need on using another plugin for the worldborder when the minecraft has a beautiful one.
 

Ole_plays

Banned
Feedback score
0
Posts
122
Reactions
9
Resources
0
The code I have provided above isn't for a plugin. You use the perdefault minecraft worldborder of the server.
There is no need on using another plugin for the worldborder when the minecraft has a beautiful one.
Like... Its 1 Block over the chunk...? how do i fix it.. it looks soo bad

92da6b6b23fa6356874582a32049df60.jpg

https://gyazo.com/92da6b6b23fa6356874582a32049df60[DOUBLEPOST=1517581499][/DOUBLEPOST]
You do not need a world border plugin to set the world border dependent on if you want more features, but the code that guy gave above is for a plugin so you'd need to create a plugin with that event in it.

If you need me to compile it later I can.
Can you create something fast, and cheap? Cought Cought free.. as paypal is locked, temp
would be lovley ( i rep u :#)
 
Last edited:
Banned forever. Reason: Scamming (https://builtbybit.com/threads/ole_plays-scam-report.433883/)
Status
This thread has been locked.
Top