#help-archived
1 messages ยท Page 60 of 1
??
any work arounds? that you may be aware of
let me see how I did the unloading, deny
event.setRespawnLocation
Huh thats a good point
just bear in mind that the method works on older version of minecraft
I do ```java
overworld.unloadChunkRequest(x, z);
I meant to say just write "." and wait until see IDE options
overworld is well a World, x,z are the chunk coords
unload(boolean save);
why would you even load it then?
so basically
i load it in
i disable auto saving
mess around with the current loaded chunks
and unload them to restore them from a file
skywars arenas
its a plugin ive been working on
i could use getServer().unloadWorld();
but will probably halt the parent process
You may check out keep chunks in memory feature.
ChunkSnapshot?
portals i think
sorry i'm kind of new to this, but why?
cause its a feature to select an area for a portal i think
guys i have server crackd mod bungeecord authme i want when player premium join with ip premium .example.com
how ?
youre looking to make a cracked server?
or.. you want premium accounts to join on a special ip?
yp
wait first or second
second
oh man i probably need that plugin to make a hub world, but that's super annoying with a wooden axe
if you want premium players only to join on a certain ip you need the bungeecord proxy set to online mode true
nunuhaza you can most likely change the tool in the plugins config
the prob is there's nothing in the config about tools
so i have no idea why it's doing that
if you want to change the wand
271 is the item number of the axe
change it to something else
Change it to something you'll never use
what's the id of bedrock?
plus once i set the first position and the second position how to put the portal up anyways?
if u use permissionex try negative nodes
i'm sure bedrock would do, since not even op can break it right?
i jsut want to play normal in op
yeah i think u can still remove specific perms
with a perms plugin
pretty sure u cant if you have * perms
op and * are different
hm.. im not sure about permissionex, i use luckperms
anyways quick question
tried throwing it in
but the block doesn't seem to work and i fall
using multiverse import
does itjust generate a void?
it gives me that grass block to stand on like it should
but i break it
i just fall
what is meant to happen?
you may need a plugin for it
it's originally a single player map
so it shouldn't need any
wait give me a sec i try the 1.15.1 version and see if that works
hey does anyone know how to make custom map images align into an image in order and don't tell me to google it I already have im asking if you can show me how to do this using spigot and not how to make a custom image on a map but how to align them in order to make a big image like this!
i had command blocks enabled
im not too sure then nunuhaza, make sure the command blocks are loaded and activated
Does updating an NBTCompound automatically update it on the item
Or do you need to re-set it
I'm pretty sure it does?
i think it depends on how its implemented
ok i delete the world and reload a new one while command block is enabled in server properties and see if that works
i have to point out though mvtp just kills me on tp to oneblock lol
so sad
sometimes mv worldspawns are off from what they should be
set the worlds default gamemode to gmc so you can save yourself then go to gms
If I ran recordings would someone be able to decipher them to help me diagnose lag or other issues before my server goes live?
i mean recordings can be difficult from deduce lag from
wait what's gmc?
o that
u can use god i think and should never kill you
they dont have a plugin with godmode
:<
?
it has "essential" stuff
yes
and so will godmode
i think it will
i already tried doing this in the void
ah no im not recommending they fall into the void
and it failed
im saying fly up, lol
oh
well
if you install world edit
or give the player the ablilty to fly
it should work
world edit has a command that allows you to /fly
theyre trying to install a one blockskyblock map, which generates a new block whenever you break the one thats there
but the block isnt regenerating
your saying you want to stop the block break event
no, not at all
the block breaks, you get the drop, but a new random block is placed there
u guys meant these 2 plugins right?
yes that should work
hmm
and man i am getting tired of the vanilla map generating small islands surrounded by water
you could have the block break event
in the middle of crack no where
u can use tp command
and then you could call it to replace a block
lmao
using math random
to tp ur self as soon as u tp to world
and to give the player that block
they arent looking to create a whole new settup for it, its meant to come with the map using command blocks
although the map might be flawed
๐ฆ
alright lets see if this shit works
oof
๐ฟ
TIA for any help detecting issues or possible lag sources
https://github.com/seanwineman/servercrash/tree/master
try run the map in a singleplayer world with cheats on first
so u keep dying?
to see if its a map issue or not
maybe i should load the map data in the default world and see if that works
oof man
umm
hmm
well
i can see if i can try to make a script of some sort
i'll probably scour the internet for help lol
๐
son of a bitch, it works in the default world file
so it works?
What are you trying to do?
what's the dif between that file and an imported one through multiverse commands?
the same file works as the default world but not a multiverse import
what the hell man
@upper hearth he's trying to give the player a block when the block break event happens and after the block break event happens he will turn it into a random block.
well
the block under the player
I think
He's trying to give them a random block on BlockBreakEvent?
cuz i also joined late in the conversation
no
when the block break event happens
the map only has 1 block
you break it
it randomly generates a new one
and keeps going
as a skyblock
so can someone tell me why it works as a default world and not a sub world with multiverse?
multiverse is just an annoying plugin
let me send you a video
ive had more bad than good with it lol
Pretty sure this isn't a Multiverse problem.
yeh but i need something like it eventually if i want to run multi world files right?
unless someone gives me an alternative
What are you using to generate the random block?
i'm not using anything
it uses command blocks
have you command blocks enabled in the specific multiverse world?
//up 0 give block under you
yes i have command block on
hmm
and this map doesn't need mods
paper spigot
i dunno what that is
it's basically spigot
^
It's a Spigot fork, if this is a PaperSpigot problem then you need to go to their Discord.
in my opinion not much
it has more plugin support and all that stuff
Isnt it out already? https://www.youtube.com/watch?v=_QihkN7cxas
Wdym more plugin support? They support the same plugins
what
that's what i am playing
what is the problem i dont uderstand
it adds more color to the game i guess
eh bukkit support i guess?
what are you guys talking about
but i still hate that mode especially hypixels
I think it just fixes some issues. Personally I use real Spigot. You'd have to ask someone in the Paper Discord what the difference is.
the oneblock map is working in the default map directory
thats fair
and not a sub directory with import using multiverse
anywho
If it's working off the default world, how is it supposed to work in the sub-world?
its most likely because
are you importing the block data correctly?
its a commandblock basedmap
You have to put it in all the worlds.
wait what import block data?
or recreate it through code
like so
i dont see it being that hard
is this the .minecraft folder?
its not just that its most likely commandblock based
with import command from multiverse
placed extremly far away from spawn
does spigot have github?
uh
well i think you make your own
through github
not spigot
but you can set it up
so you do commits and whatnot
?stash
huh
It doesn't work off physical command blocks. Loading shouldn't be a problem.
yeah i just realized
๐
hey by any chance here does anyone know how to make custom maps with big images without using a plugin but using spigot and your brain?
is there a way to find wich one
the thunder wolf? is that a boss
usually debug are disabled once a plugin is released.. unless manually turned on
i might have by accident
i just recheck all the configs
how can i make iptables
ok i rehosted it from scratch again with commandblock off it works fine
umm
but only if the world is the default world
ok
so what is wrong here?
hmm
well it doesnt say
well
it meant to be community based
as soon as i rename the folder and import with multiverse
i think i have a video that might help
he most likely created with the ideea of 1/friends
the block doesn't regen
if he somehow hidden the logic behind "world=OneBlock'' ur screwed
why not make it from scratch though?
afaik that's not even possible ^
looks pretty simple
But you probably have to reload the datapack.
you never know what can be done through command blocks these days..
im amazed myself seeing what crap comes out
can someone explain to me why the block regen only works as the default world?
because
True, but I can't think of a reason Mojang would add the ability to see the worldname
i think that something in your files is set to default world
and not to the specific world you wanyt
its hard for me to even comprehend how someone can create something so complex
i said i have a video that can help
he mustv spent a while making dem command blocks
i'll post it now
i think i found it
UltraStaffChat - Debug Permission. ( Allows use of "/usc debug" which is only used to give some info that is helpful during support )
debugperm: "ultrastaffchat.usedebug"
i got all the perms
"Spigot Plugin Development - 35 - Always Day and Clear Weather" ?
gamerule dodaylightcycle false ๐
oop-
sighs
just watch he has world that named different things
and he will tell you why
he is good ๐
idk if same logic can be apllied
well
he said spigot and paper spigot are simialr right?
almost the same..
yeah, pretty much the same
anyway you just have to watch the whole thing
in order to understand
just trust me
or... ask the actual guy who made it if he knows the reason
ok
i could
i litreally have his discord chatroom in my thing
well
my chatroom menu
this chatroom is just one of them
i'm falling asleep 2 mins into the vid
man
sometimes
boring stuff helps
jsut
watch
speed it up x2
that helped me
bruhh kody simpsons plugin series is god tier tho
yes
i can't, my brain isn't designed to process all that
i used it to get into some spigot development a while back lmao
what exactly does he do all i see is him using the motd
think it works fine for my default folder too
just can't seem to work with multiverse
@noble bolt kody simpon is a noob dev advice
both shit
shit or not there arent many
yes so you just gotta learn it urself
as i said, getting into it, everyones gotta start somewhere yknow?
although if you can recommend me some nice resources thatd be great :)
yeah.. alot of the api is covered by him
o i give up is there a multiverse alternative?
making your own..
that's never going to happen
It's really not that hard to create worlds?
he still has the problem of getting that map to work
Bukkit.createWorld(new WorldCretor(name).environment(World.Environment.NORMAL));
overall for spigot this would need to be its own skyblock plugin
getServer().createWorld(WorldCreator.name("world_name"));
this is how i create default worlds
?
you might want to use Bukkit. if you dont have access to the plugin class
we are kinda over that part..
Hey guys, is this good design?
Land land = new Land(5, null, new HashSet<Chunk>());
Relationships relationship = new Relationships(0, new ArrayList<String>(), new ArrayList<String>());
Stats stats = new Stats(Tier.TIER_1, 0, 1);
Kingdom kingdom = new Kingdom(stats, args[0], new HashMap<UUID, Role>(), land, relationship, true);
kingdom.setRole(p.getUniqueId(), Role.KING);
kingdomManager.addKingdom(kingdom);
For making a new kingdom instead of having one long constructor
oof
i don't know this typo stuff
anywho
hey does anyone know how to make custom maps that form together that make one singualar image when put together using spigot of cours
i give up i guess i can host the oneblock as a standalone for the sake of it
how do people get multi-colored icons in chat, like this https://i.imgur.com/oJLr5Nm.png
Those should be 3 different characters
hmm, they seem awfully close but you're probably right
So just verifying, the only way to "remove" your map renderer through API, is to remove it directly from the MapView? Just making sure this wont cause memory leaks lmao
how can i get a snow flat world, with multiverse?
@frigid ember i think you can find some plugins that allow for flat world creation using multiverse
not sure about the snow part
Also, I've been experimenting with FallingBlocks recently. I've tried spawning beacons but sometimes when they hit the ground they turn into tiles. Is there something that I need to fix or is this just standard minecraft physics messing with me?
damn i suck at this, that thing looks like a spatula
Okay, so how do i get each number in an integer (not what you think)
For example if the integer is 20 I want it to be how many 1s are in that number
divide by 1?
round down 20/x where x is the number you're checking for
round down tps/2 ?
It's going to be 20 no matter what. There will always be 20 lines. If you have the TPS, you have the amount of lines that should be green
You can StringBuilder them
i have something like this ๐ค
StringBuilder barBuilder = new StringBuilder();
barBuilder.append(ChatColor.GREEN);
for (int i = 0; i < 20; i++) {
barBuilder.append('-');
if (i == tps) {
barBuilder.append(ChatColor.RED);
}
}```
Where tps is your tps, obviously.
okay ty
Boys, I am running into a problem
I am dynamically-wise getting values from my YAML file using YamlConfiguration#get(path)
When I have a value like this in my .yaml file price: 10 it is being casted into an Integer
But for some reason I can't convert this integer to a double
what do you mean
i think i might be able to help
use YamlConfiguration#getDouble(path)
double d;
d = integer;
I can change it into price: 10.0, but then I have to do it for every value
use YamlConfiguration#getDouble(path)
this is the way to go
the value you set is the value you get
@pastel basin I made a helper class, so I can get the values by objects and auto-cast them using generic typing
'2': '{v=2230, type=DIRT, amount=64}'
'3': '{v=2230, type=DIRT, amount=64}'
'4': '{v=2230, type=DIRT, amount=64}'
i serialized itemstacks to my configyaml like this
String x = item.serialize().toString();
but how do i get it to an itemstack?
Currently I have this
public <T> T getSingleValue(String path) {
try {
return (T) this.config.get(path);
} catch(ClassCastException e) {
Bukkit.broadcastMessage(ChatColor.RED + "An error occured while trying to get '" + path + "' from the configuration file '" + this.path + "'!");
}
return null;
}
That's usually not a good idea at all
Blind casting is prone to error
IDE should be warning you about that too
it was screaming when i was casting a generic
But when I retrieve a value like 10 I am getting it as an Integer, and when the value is 10.0 it is a double, but I always want to retrieve it as a double if I cast a value like 10 (without the decimal)
That's kind of just what you get. YAML sees 10.0 and it's a double. It sees a 10, it's an integer. It sees 10.0.0, it's a String
YAML likes to assume the best type
I can understand that
thanks choco, im not completely understanding the docs yet but what do i fill in as second argument
But why is Java not casting an Integer to a double when I want to make it a double?
you don't cast this way tho
Sorry that link was for Nosai, not you Rik. As for your issue, you shouldn't be setting anything in the configuration to the String representation of a Map
Isn't it just a matter of appending a .0? ๐
You can set an ItemStack directly instead. They're ConfigurationSerializable. #set(ItemStack) and #getItemStack() should work here
Yes
cause if i save another chests it makes the old ones all air
so thats why im trying serilizing now
so im saving itemstacks to my yaml but after saving another one they are turned to air in the config
loot:
kist1:
'4':
==: org.bukkit.inventory.ItemStack
v: 2230
type: AIR
amount: 0
'10':
==: org.bukkit.inventory.ItemStack
v: 2230
type: AIR
amount: 0
'11':
==: org.bukkit.inventory.ItemStack
v: 2230
type: AIR
amount: 0
'16':
==: org.bukkit.inventory.ItemStack
v: 2230
type: AIR
amount: 0
'22':
==: org.bukkit.inventory.ItemStack
v: 2230
type: AIR
amount: 0
'24':
==: org.bukkit.inventory.ItemStack
v: 2230
type: AIR
amount: 0
Are you looking to cancel damage being dealt or just interaction overall
interaction overall
You could listen to the PlayerInteractEvent and cancel is if the user is holding a sword or an axr
Axe*
That's smart
but I am working on something like
PlayerMoveEvent
I want to trigger that action while he is moving
nested function or there is an easier solution?
There is a player move event
I know I already implement it
but I want it to be while moving, cancel block damage
ItemStack x = chestloot.getSerializable("loot." + args[0].toString() + "." + itemname,??? );
What do i fill in on ??? im lost
can't find a good explanation on google
Class<T> but i dont know what to do
Use the Player Move Event and get getTo to check . Store it in a hash map with the player and check if the location has changed on the player interact event @spring sapphire
If it hasn't changed the player isn't moving
I believe there's a simpler way.
Like player.setWeapon(const) thing or something like that
@narrow crypt That is probably a bug in your code, that your items are being set to AIR again
Like player.setWeapon(const) thing or something like that
@spring sapphire there is no such method, I believe. And if there was, why would that help with your current problem
Is there a way that I can know if a block is a special type of block when i click it? I know I can use blockdata and blockstate and add a name to the block, but can I do something else using something like NBT tags?
can someone help me with savageftop plugin? (Dev isn't replying)
does anyone know how to make a large custom map image using spigot? it would rly help I have searched google far and wide but have found nothing and would rly aprecciate if you did help
๐
A quick question
what's the event of left click not right?
Because I want to disable using a pickaxe for example
or swords
I'm pretty sure I know the answer to this
But is there any way to load tab complete from the alias you're trying to use in commands.yml
the alias works but tab complete is still the original command
I'm having some trouble with the DiscordSRV plugin. Is anyone familiar with it that can help me out?
I teleported to one of my npcs and it brought me to the bottom of the world, i think someone put them there insted of removing them. Anyway i teleported to one and I got kicked for invalid move player packet recived. I tried removing essentials folder, citizens folder, and i still cant join unless I go to console and right as im joining i send myself to another server.
You need to send yourself to spawn because you could be under the negative 32 bit integer limit in minecraft which can cause that
I get kicked right away
ik how
Okay
You need to remove it from the worlds "playerdata" folder
there is nothing in playerdata
just checking my uuid
yep
Hello, I have a problem installing Linux Build Tools, everything step by step how to make a tutorial and I encounter java error -jar Build Tools
im reloading the server now
Okay
thanks!
np!
im making a coinflip plugin, every half second i make a new inventory and do player.openInventory(inventory); . But doing it this way seems to drop tps, anyother ways to update/open a players inventory with a new inventory
Why not just change the contents of the inventory? That would be much faster
Would someone be able to help me. My console and chat is being spammed with 50, false, 100, true
Does anyone know anything about DiscordSRV? I followed the Github guide perfectly and hosted my bot on a VPS but it still doesn't work
DiscordSRV is a java plugin?
wtf it just started working
xD
it works nvm!
what does the BlockData object actually store about a block
@earnest bay thank you!!
any help?
What plugin did you install?
Its not down to any plugin, I've used the server with no plugins on, and still happened
And just to verify, you are using spigot as your jar?
Its not the host, because it would happen on my other spigot server hosted on the same VPS. And yes it is a Spigot Jar
someone had too much fun with debuging
I have never seen this in my time
All of my known possible debugging options are off
yeah it's some debug left by a dev
well then it's the server
I did go from paperspigot to spigot, but both times, this would be happening
have you tried yeeting all the files off the server and loading up new server files?
And on all 4 of my spigot servers?
Its my next option, but I was hesitant to do that, as there are MANY files on there
Your first step would be to back up anything, of course.
Fun lmao
Only thing it could really be if you have no plugins is the yml files generated by the jars.
Yes thats what I was originally thinking
(spigot.yml, bukkit.yml, server.properties, bungee.yml)
But even my own paid developer was hella confused as he has never seen it before
One of those probably have a debug mode enabled somewhere that you missed.
And neither have I and have been developing servers for years
Try going back a version on spigot maybe?
Guys, how do I stop players from being teleported to their last location when jumping between server? I want them to go to spawn
or build latest if you haven't
Its odd, because it never used to happen
In general, is there a setting for it?
Not by default afaik
I've set spawn with cmi
cmi should have an option on join to teleport them to spawn
^
but bungee teleports you back to where you left, resulting in you going back to the same place as the teleporter....
Shouldn't do?
CMI should fire after Bungeecord.
ah wait, its only apache commons lang that is included
it's not reliable
Thonk
either way I need to shade in 3, so I did
Shading 20mb Jars feels bad
good thing it's not 20mb then i suppose
If you want to upload this plugin to spigot you wont be able because the limit is 8mb
well I guess its volatile because its out of your control
apparently 2.6 is also deprecated
so I guess 2.6 might be removed in a future spigot build
what was the problem with your pom btw @dusty topaz
thats quite big, iirc there's a way to only shade the necessary stuff
(big for a spigot plugin that is)
what was the previous size?
apache commons is around 500kb apparently
you should probably try to minimize the jar size as 500kb is quite big
okay i found the issue never mind lmao
Hello, i have a bungeecord server running at an external household and the hub for the server is located at my house. The issue is that when my internet goes down then comes back on, the bungeecord refuses to connect to it at all, the only way to get it to work again is to restart bungeecord. What can i do to fix this?
Could move the servers to a host
That way you will have little issues in keeping it up, such as if your wifi goes down
You don't have to worry about the server
There are a few cheap(ish) hosts
I personally would only use a home hosted server for development, cause someone could always DDOS you and its not worth the trouble
hey, i wan't to download the plugin viabackwards on my 1.12.2 server but nothing happen, how can i enable it ?
I want to make a chunk hopper plugin. How would i make each "chunk hopper" have a unique id, so when a player clicks on it, i can check the unqiue id of the chunk hopper
UUID.randomUuid();
or create one just like how bukkit does it for offline uuids :p
or i dunno, i'm pretty sure chunks have proper hashcode nowdays
hashcode algorithms will usually fail somewhere
in one of the quadrillions of multiverses
same with uuid randomuuid
more often in a quadrillions of multiverses than an hashcode
you can't guarantee that ๐
i could do the maths if you want :p
Just have an incrementing integer.. Impossible to have collisions
yeah but i still say to use an uuid generated by x and z
I mean use a UUID if you're expecting a number all the way past 9,223,372,036,854,775,807* lol
protocolsupport plugin is activate when i make /pl but he is not activate and i can't connect on 1.9.4
no no
and the folder PrtocolSupport don't exist
how od you divide using java code
That's how
This isn't ASM
define ASM
Assembly
how could i make dynamic type holograms with holographic displays
where text changes depending on conditions
like text is replaced with other text
if statment
but not placeholders
i guess
It's just setCustomName. No idea how you'd do it with that plugin
oh no
dang it man
well i can give you a suggestion
on a spigot series to get you started
...
@arctic cedar
if you would like
well i'm just good with config editing and that's it
because idk if holographic displays has a feature with reoplacing text
it prbobably does in the config
but for if statements and crap your gonna need to learn how to code
idk programs to change .jar files
also i would want to make it work with placeholders
huh
cool
well
i suggest you take that if you want to learn how to make your own holograms
๐
bye bye
well ia dont feel like literally making my own plugin
ok
- cosversation has been terminated-
HoW Do I MaKE a SeRvEr?
What can i do if the plugin don't load ??
delete it
But i wan't to use it i can't fix it ?
only the dev can answer
How do I make the server icon not pixelated? I have the required image size, and the image isn't blurry in my editor.
But as soon as I open up minecraft, the image is extremely pixelated.
server icons are limited to 64x64
Yup, I used that image size.
maybe you are not exporting the image correctly?
I am exporting as a 64x64 png file.
did you create the image as 64x64 or are you shrinking the size with the editor?
I tried both, but the image is still pixelated
get verified and send a screenshot of the image on the editor and on the server list
when I make an account and do the confirmation thing, it says error...
on the spigotmc website
The support email on the spigot site doesnt work... How do I talk to someone about getting my 2fa reset?
The first one is definitely not 64x64
just scale it down
Hello frriends
Just want to know if it's possible to default the nether world as the frist and only one on a server
it is possible?
Cause i tried with Multiverse-Core Plugin and it doesn't allow it to be like that
eather if i disable the option "AutoLoad"
i'll be very thankful if you can help me
Just make a spawn at the nether and set the spawn and don't allow people to leave?
No need to be complex.
Heyo,
I'm trying to save a class to config using FileConfiguration.
public UUID auctionID;
public ItemStack item;
public UUID playerSelling;
public double startingPrice;
public double currentBid;
public UUID playerCurrentBid;```
Thats all i need to save however i get this error when trying to read the file.
```org.bukkit.configuration.InvalidConfigurationException: could not determine a constructor for the tag tag:yaml.org,2002:me.buby.bubyrpg.services.auctionhouse.AuctionInstance``` Is this implying i need a special constructor for yaml?
make the class implement Serializable
easy thankyou
@pastel basin no, its 64x64
I can remake it
@pastel basin I remade the file, its a 64x64 file.
64x64 pixels?
Hmm changing it to serializable didnt seem to do anything
Still won't work
I'm using the holographicdisplays api for one of my plugins, and when I create a hologram using the method below, the hologram isn't centered over the block. How do I center it?
Code:
loc.setY(b.getLocation().getY() + 1);
Hologram hologram = HologramsAPI.createHologram(plugin, loc);
TextLine textLine = hologram.appendTextLine(ChatColor.translateAlternateColorCodes('&', cs.getString("legendary")));
round it to the nearest .5 on x and y axis
ok thanks
how to turn .java to .class
i turn the .class file to .java file than i dont know how to return it.
I am trying to edit the file on bungeecord to disable the tabcompleteevent
Why doesn't my spigot server appear to anyone?
is EntityDamageByEntityEvent.getDamager()
the guy who is being damaged or the attacker?
@chrome heron might not be the best way to do it
@spring sapphire getDamager() is the entity that did the damage. getEntity() is the entity that was damaged
@patent monolith so how?
@chrome heron are players without permissions able to tab complete those commands?
Guys ping me, I want to get a lot of pings
@paper compass
@paper compass
Kk ty
if(e.getEntity().getUniqueId() == " fb57db72-65b7-36f9-8438-92f36075321")){
why is not working?
@spring sapphire do you know the difference between == and .equals first of all
.equals() take an object?
do you know why you would use each one
Also dont forget to add .toString
both have a use case
I tried .toString and it didn't work
but they are both for different things
I can't find the type of getUniqueId so I equal it
@patent monolith find any solution?
If someone shown me an example, I would be glad
@spring sapphire let me find you an article or smth on the difference
that's your big problem rn
@chrome heron do you have a link to the plugin?
@spring sapphire https://www.geeksforgeeks.org/difference-equals-method-java/
what what plugin
review that and it should help
wow thanks
i cant find any plugin based on bungeecord to disable tabcompleteevent
Why would you want to?
I want to disable the tab complete
Players w/o perms see tabcompletes @harsh anvil
@chrome heron what is being tab-completed? User names of players online?
I really don't get why people care so much that others can see your plugins
Yeah it's great
sorry i care :๏ผ
Just don't give them permissions to check and you're done
@chrome heron how did you test whether or not players can see the tabcompletes? Did you /deop yourself?
Do you have any permissions plugins?
Remove all your perms for your player and try again
spigot disabled
Your testing may not be extensive enough
i dont think this work
is entityplayer#ar on 1.8 a boolean for if they are left clicking AND right clicking?
Doesnt matter if you cant exec it
You are trying to see if it tab completes or not
ok here is what you should try
- stop server
- temporarily remove luckperms from your plugin folder
- start server
- deop yourself
- try to tab-complete (you dont need to execute the command)
on the subserver
Pretty sure you shouldn't have tab complete if you don't have perms. Idk for bungee tho
Unless the plugin doesn't do the autocomplete properly
sub servers?
i disabled the tabcomplete on subservers
any subservers tab complete does not exeist on deop
but players dont go on the bungee one?
ohhhh
all the available tabcomplete command is on bungee
i thought you meant the args okay
so i dont know how to disable it
there are plugins for that
for bungee?
for that server you took the screenshot on
ok here is what you should try
0. install that plugin and configure it
- stop server
- temporarily remove luckperms from your plugin folder
- start server
- deop yourself
- try to tab-complete (you dont need to execute the command)
oops
-edit: fixed
slightly different than the first one i suggested
but i need that plugin...
temporarily
dont worry, we will put it back
its just for testing
maybe drag it to another folder idk
just for now
for sub servers?
no, for the server you took the screenshot on
i dont see any tab-completions in that screenshot lol
okay, here is what I suggest then
well
what does the config file look like for that plugin?
you downloaded this one, right? https://www.spigotmc.org/resources/noplugins.12965/
no wait
i think this will be better
whitelist
which i am using now
whitelist anti tab
k
Is there a way to ovveride multiverse enforced gamemode change on world teleport ? I am writing a plugin where I tp players for a pvp fight, so the world is set to survival. When they die, I give them the option to tp back and spectate in spectator mode. I have tried several things including trying to use the bypass permission of multiverse but it doesnt seem to work. I teleport them first and the change their gamemode to spectator within my plugin and it simply doesnt work. They are still in survival!
The question is, is there a way to bypass that and be the last to do the teleporting ?
Should i just listen to the event of teleportation last and just set the latest gamemode ?
.
Is EntityPlayer#ar a boolean for checking if they are holding either click? Or just left?
Guys
@SuppressWarnings("unchecked")
public Kingdom(Map<String, Object> map) {
this.stats = new Stats(Tier.valueOf((String) map.get("tier")), (int) map.get("xp"), (int) map.get("level"));
this.relationship = new Relationships((int) map.get("reputation"), (List<String>) map.get("allies"), (List<String>) map.get("enemies"));
this.land = new Land((int) map.get("power"), (Chunk) map.get("coreChunk"), (Set<Chunk>) map.get("chunks"));
this.name = (String) map.get("name");
this.open = (boolean)map.get("open");
}
@Override
public Map<String, Object> serialize() {
Map<String, Object> map = new HashMap<>();
map.put("tier", String.valueOf(stats.getTier()));
map.put("level", stats.getLevel());
map.put("xp", stats.getXp());
map.put("name", name);
map.put("members", members);
map.put("open", open);
map.put("power", land.getPower());
map.put("chunks", land.getChunks());
map.put("coreChunk", land.getCoreChunk());
map.put("allies", relationship.getAllies());
map.put("enemies", relationship.getEnemies());
return map;
}
public static Kingdom deserialize(Map<String, Object> map) {
return new Kingdom(map);
}
Do I have to check if the cast is safe or can I just cast it if it implements ConfigurationSerializable
https://hastebin.com/pejikewehi.cpp full class
@frigid ember Just cast away
Alright thanks ๐
Hey guys, I keep getting this error
https://hastebin.com/ahamixemux.bash
@Override
public Map<String, Object> serialize() {
Map<String, Object> map = new HashMap<>();
map.put("tier", stats.getTier().toString()); //line 96
map.put("level", stats.getLevel());
map.put("xp", stats.getXp());
map.put("name", name);
map.put("members", members);
map.put("open", open);
map.put("power", land.getPower());
map.put("chunks", land.getChunks());
map.put("coreChunk", land.getCoreChunk());
map.put("allies", relationship.getAllies());
map.put("enemies", relationship.getEnemies());
return map;
}
But Tier is not null
I'd double check what stats.getTier() returns. Java seems to think otherwise that it is not null.
How can I remove a specific Pathfinder goal from a Ravager entity?
can you host a server for minecraft win10 edition? And if so, is it up to date with the current patch (1.14.60)
Does spigot only work with Java edition than im guessing?
you would be correct in your assumption
bungee keeps giving me the error of "io.netty.channel.connecttimeoutexception"
when connecting to my lobby
ConnectException which will be thrown if a connection could not be established because of a connection timeout.
is this your first time setting up bungeecord?
i would start by making sure in your config.yml, under servers, that lobby is still pointing to the correct server address
yeah it is hm ;P
i dont understand, its strange
Hey guys, is there a better way to do this?
public Kingdom(Map<String, Object> map) {
this.stats = new Stats(Tier.valueOf((String) map.get("tier")), (int) map.get("xp"), (int) map.get("level"));
this.relationship = new Relationships((int) map.get("reputation"), (List<String>) map.get("allies"),
(List<String>) map.get("enemies"));
Chunk c = null;
if (map.get("coreChunk") != null) {
c = ((Location) map.get("coreChunk")).getChunk();
}
Set<Chunk> chunks = new HashSet<Chunk>();
if (map.get("chunks") != null) {
for (Location l : (List<Location>) map.get("chunks")) {
chunks.add(l.getChunk());
}
}
this.land = new Land((int) map.get("power"), c, chunks);
this.name = (String) map.get("name");
this.open = (boolean) map.get("open");
}
I'm trying to save Chunks to the config, but I have to change it to location and then change it back to a chunk.
yeah it is ;P
okay, next check server.properties, and make sure the port is fine in there.
It is, im starting to think its a firewall issue
Hm
it seems to have different ips if that matters
wait, what has different ips?
the lobby + prison (ones that arent connecting,) and the factions and skyblock (ones that bungee is working)
it must be a firewall ;P
anyone know how i can make it so a play can edit a sign to input a value? Like not a physical sign but make it pop up through code
Anybody got any idea on why this isn't being cancelled or even called?
@Override
public void onEnable() {
this.protocolManager = ProtocolLibrary.getProtocolManager();
this.protocolManager.addPacketListener(new PacketAdapter(this, ListenerPriority.LOWEST, PacketType.Play.Client.ITEM_NAME) {
@Override
public void onPacketReceiving(PacketEvent event) {
event.setCancelled(true);
event.getPlayer().sendMessage("cancelled. (1)");
}
@Override
public void onPacketSending(PacketEvent event) {
event.setCancelled(true);
event.getPlayer().sendMessage("cancelled. (2)");
}
});
}
you can't bring up the sign edit gui after the sign has been placed, but you can still edit the text of the sign via other means however @marsh hawk
but all you do is just get the blockstate of the sign
Nah i mean like shows the sign edit gui without using a physical sign
i just need the input from what they put in
Oh
it is client side if I recall for the sign edit gui, you could try sending the packet for it though
but I doubt it will work without having a physical sign
hmm ill do some looking around.
I know it's possible i've seen it done plenty of times
Client Side modifciations for signs
you'd probably be best off deleting that sign client sidedly and replacing it
with a new one if anything.
@marsh hawk ok looking at the protocol, it would appear that it might be possible if you send a block change packet to make the client think there is a physical sign there
and then you should be able to send the update sign packet
I mean Open Sign Editor packet
Awesome thanks, I'll look into it