#help-archived
1 messages · Page 175 of 1
Twitter, GitHub, Microsoft, LinkedIn, Ansible, Splunk, Android, Go, MySQL, PHPUnit, Curl, OpenZFS, Rust, JP Morgan, and now the Linux Kernel development team have all adopted inclusive terminology...
i dont know what git is lol
oh it was com
why does it say scm
don't worry about the url name, git for windows is at that link
it reminds me of scam lol
it says why
scm = Source code management
I thought Scm stood for source code manager so don’t worry to much
ohhh
The Russians have access to everything anyway
Source Configuration Management too
(Hi putin)
so its https://git-scm.com/?
either url is fine
oops i didnt mean the ? on the link
they go to the same place
tokay
okay
usually whenever i want to get something like a fun server with a plguin
plugin
or something
so download git for windows, install it. After it is done installing. right click in the directory with buildtools. Select git bash. then type
java -jar Buildtools.jar --rev 1.15.2
my dumb virus blocker always says "OOO THIS HAS A VIRUS"
but so far that hasnt happened yet
so so far so good
because these are all official verified tools 😛
Git is safe
Yes
I mean, not sure how else you are going to obtain it unless you do
true
welp
it didnt even let me choose 32 bit or 64
it just downloaded 64 right away
which is what you want if you have 64bit windows which you most likely do
most of the time don't need to unless you have specific reason
the site does let you choose versions
so download git for windows, install it. After it is done installing. right click in the directory with buildtools. Select git bash. then type
java -jar Buildtools.jar --rev 1.15.2
@keen compass just quoting so i dont have to scroll up
wait
in the directory?
in git?
where ever you have buildtools.jar
i just have it in my downloads on files
ideally you should have it in a directory because it is going to create some directories and files
so should i make a new file and put it there?
directory you mean? yes I recommend doing that
so that it is easier to find the files
im sorry if this is getting annoying, its just that i am a noob with files
so i dont understand what you mean by directory
don't worry, dealt with worse and you are not close to being the worse so alls good 😉
thank you
directory = folder
uh
right click, select new then create new folder, put buildtools in that folder after you give it a name. Preferably don't use spaces in the folder name
ill just keep it named at New folder like i usually do
then go into said folder, right click in an empty place, select git bash here
oh so i put git bash in the new folder?
no
oh
put buildtools in there
go into the folder
don't right click the file, just right click in an empty spot
so you can get the menu
then select git bash here
i right click and get the usual stuff
did you install git for windows?
yeah
nope
interesting
am i supposed to do it in the folder that has buildtools in it?
yes
Anyone familiar with spigot's premium placeholders?
in the folder
that isn't a problem
alright, so since that isn't working for you. Go to your start menu. Navigate to the G's
find the one that says git
in there there is git bash
click that
what is the start menu?
the button in the bottom left corner of your screen
should be the windows icon in the left corner
yep
select that
wait I added that dependancy and it still cant find bungeecord-proxy
either search or navigate the menu
if you use search, just search for git bash
otherwise scroll down to the G's
<repositories>
<repository>
<id>bungeecord-repo</id>
<url>https://hub.spigotmc.org/nexus/content/groups/public/net/md-5/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.16-R0.2-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-proxy</artifactId>
<version></version>
<scope>provided</scope>
</dependency>
</dependencies>```
<url>https://hub.spigotmc.org/nexus/content/groups/public/net/md-5/</url>
remove /net/md-5
okay im at the G
should see where it says git
okay thanks also ignore the version missing its not like that on it
OMG IM DUMB LOL
one question, the only way to track map items is through their "magical number" ID, right? I mean tracking with no prior context of course. Because i'd like to do it differently if its possible, cuz this is deprecated afaik.
alright install it
im just spam pressing next
and then you should be able to do the right click thing afterwards
Could not find artifact net.md-5:bungeecord-proxy:pom:1.16-R0.2-SNAPSHOT in bungeecord-repo (https://hub.spigotmc.org/nexus/content/groups/public/)
do i just press next
still says that, not sure what repo has it
once it finished installing
1.16-R0.2-SNAPSHOT
is incorrect
shhould be
1.16.1-R0.1-SNAPSHOT
okay
yep select that
same for api?
im glad you are still working with me here @keen compass i had kind of expected people to just give up because i suck at this, but you are a very nice guy
What do you mean
now there is a $ sign and it just stopped
one question, the only way to track map items is through their "magical number" ID, right? I mean tracking with no prior context of course. Because i'd like to do it differently if its possible, cuz this is deprecated afaik.
@hasty crag you wanted to do it differently
answer is it is possible to do
how
you have to save the maps yourself
and track them yourself
instead of letting the server handle it
how and where may I save them?
after changing bungeecord api also to 1.16.1 R0.1 now they are both red
and Could not find artifact net.md-5:bungeecord-api:pom:1.16.1-R0.1-SNAPSHOT in bungeecord-repo (https://hub.spigotmc.org/nexus/content/groups/public/net/md-5/)
@next dawn
type Java -jar BuildTools.jar --rev 1.15.2
tried with and without the net md-5
you have to save the maps yourself
@keen compass how is that possible
@fringe cairn lol I am stupid. its 1.16-R0.3-SNAPSHOT
it made an up arrow and a V
just backspace
lol okay, but I still think it can't find the bungeecord-proxy
Bungeecord-proxy the version for that is 1.4.7-SNAPSHOT
okay i did that
You can copy and paste @next dawn
oh
and then hit enter
and it should start doing its thing
or error out
one of the two
bungeecord api the1.16-R0.3-SNAPSHOT part is red
Probably don't have java installed
i do
bungeecord proxy both the bungeecord-proxy and 1.4.7 things are re
yeah one sec
please help me, i'm kinda lost
<repositories>
<repository>
<id>bungeecord-repo</id>
<url>https://hub.spigotmc.org/nexus/content/groups/public/net/md-5/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.16-R0.3-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-proxy</artifactId>
<version>1.4.7-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>```
alright i think its updated
I don't see how i can store the maps and then retrieve the item associateed to them
without using their based id
<url>https://hub.spigotmc.org/nexus/content/groups/public/net/md-5/</url>
should be
<url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
I think i've tried it with both
the map items contain metadata to point to which map they are for @hasty crag
but I will try again
you will have to alter that or use a different metadata tag to track the items appropriately
yeah still no go
wait
yeah here what intelliJ shows
it says it takes 512m of memor
might even try clearing maven's stuff too
you will have to alter that or use a different metadata tag to track the items appropriately
@keen compass that was my thinking so far, but then someone told me that its not possible to track items according to meta.
@hasty crag they are probably not very experienced or really don't know what they are talking about. All items have metadata, it doesn't go away unless you drop the item and pick it up. Metadata on items persist last I recalled as well.
@next dawn obviously need shutdown some applications to make room memory wise 😛
google is taking up 1k memory rn
From Choco:
ItemStack instances aren't really trackable
You can determine if an item is yours using persistent data, but you can't find that ItemStack from anywhere in the world
wait so invalidate caches and restart?
so does https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Tag.html not support custom tags defined in datapacks?
@fringe cairn yes you can try that
i closed out of everything but discord lol
wait do i have to uninstall stuff to get some more memory
wait of course i do
Cannot resolve net.md-5:bungeecord-api:1.16-R0.3-SNAPSHOT
even after restart and invalidating caches
Cannot resolve io.netty:netty-all:4.0.0.Beta3-SNAPSHOT
the first one is for the api (which works if I set it to r0.2) and the second is for the bungeecord-proxy which I havent gotten working yet
could try purging the maven repo dependencies @next dawn
🌚
mvn dependency:purge-local-repository
i have no clue what those words mean
me or spidere?
@next dawn not sure, sounds like you don't have a whole lot of ram
either buy more or start shutting down stuff =/
actively running applications take up resources
even those running in the background
ohhh
oh wait i know what you mean now lol
uh all i have open is my files, git, and discord
and it still gives that error when trying to run buildtools?
yeah
uh still Could not find artifact net.md-5:bungeecord-api:pom:1.16-R0.3-SNAPSHOT in bungeecord-repo (https://hub.spigotmc.org/nexus/content/groups/public/)
alright, guess we will have to use some additional JVM arguments to get it running for, however this doesn't look good though for when you want to run the server
Anyway @keen compass so I have an item which has been marked with some specific and unique metadata. This metadata has been stored. Can you now please help/indicate me how to retrieve the item/mapview back using the stored metadata (only)? Is there like a function Bukkit.getEntityFromMetaData(metakey,metavalue) or something?
the server is going to use up more ram then what buildtools really needs to run with
about 1-2GB at the very least
i did ask aternos's forums to add the fundys nightmare mode so ill just probably use aternos
it was worth a shot though
there are other providers for VPS's just fyi
okay
but you can do that as well
i probably wont
well it was nice talking to you
all 3 are the same company fyi
Yeah, primary reason why some people don't home host 😉
cya later
@hasty crag you are going to have to store the map files yourself as well and keep track of them. You are going to have to come up with a way to associate your metdata with the map files you are tracking
As well as possibly keeping track which inventories maps are stored in
I will tell you now, it is going to be a tedious process setting up your plugin to track all of this
hm i see, so basically at this point i'd rather use their ID i guess
I seemed to get the latest api to download with ```xml
<repositories>
<repository>
<id>bungeecord-repo</id>
<url>https://hub.spigotmc.org/nexus/content/groups/public/net/md-5/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.16-R0.3-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-proxy</artifactId>
<version>1.4.7-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>``` that as my repo
@fringe cairn not sure why your IDE/Maven is insisting on not grabbing the dependencies
did you try purging maven?
yeah
anyway thx for the help!
and I think that fixed 1.16-R0.3-SNAPSHOT not downloading
but the bungeecord-proxy thing still doesnt work
and I had to use the url with /net/md-5 on the end
this seems to be the only error now Cannot resolve io.netty:netty-all:4.0.0.Beta3-SNAPSHOT
are there any other repos with it
how do I specify a different version? its donwloading that automatically when I donwload 1.4.7-snapshot
and I've tried building and maybe I'll try again but
just a lot of work/over my head
let me see if there is a different repo you can use
I was using this repo https://oss.sonatype.org/content/groups/public/ before and it was all working
but it seems to be like private or something now
think you are probably just going to have to build bungeecord yourself
maybe later I will build it and put it in my repo
okay so what do I put in my pom.xml if I build it
lemme try to build it right now
lol this isn't as easy as before as my desktops psu decided to die on me so I'm using a not so greate laptop
but i've opened bungeecord in intelliJ, do I build just the modules I need or like everything somehow
Okay I think something's really wrong, I can't build bungeecord because I can't download the dependancies in the pom.xml of bungeecord
Weird
you shouldnt have to be getting bungeecord-proxy
the only things you should have (like i do for 1.8) ar
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.8-SNAPSHOT</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.8-SNAPSHOT</version>
<type>javadoc</type>
<scope>provided</scope>
</dependency>```
in your case 1.16-R0.1 possibly
or 1.16-R0.2-SNAPSHOT
If I were trying to make an NPC would I use the class HumanEntity?
Or would that be more of an NMS-based thing 🤔
I need bungeecord-proxy for InitialHandler
but to build bungeecord which maven script or whatever do I run?
building it now and going to toss it in my repo, maybe that might help you out
I think I just built it, how do I add a local file to maven?
should be able to reference like normal. Maven should pick it up that you have it
Okay I think I got it all setup... not sure why it wasn't working from the repo but its working from a local file
thanks for you help
well if you do need a repo, and spigotmc's isn't working I have one here
https://repo.frostalf.net
if something is not there and would like it there, just only need to ask 😉
: public void disallowGUIDrag(InventoryClickEvent event){
if (event.getInventory().getTitle().contains("island missions")){
event.setCancelled(true);
}
}
Why isnt this working?
the menu is &bIsland Missions
kk
Wdym 'it toggles back off'
I need help is where is the help place
Here
ooh cool
@lapis plinth use if(event.getView().getTitle().equals("inventoryName"))
Hi, is there a way to reduce endermen spawn rate in spigot / paper?
Causing instant lag on my server with endermen farms
anyone know a good scoreboard plugin for bungee servers
is it possible for block place packet and block dig to be sent in a single tick together?
hello
is there someone who knows why my downloads is broken here:
https://www.spigotmc.org/resources/command-panels-custom-guis.67788/history
it went weirdly high 🤔
@lapis plinth use
if(event.getView().getTitle().equals("inventoryName"))
@frogsoup.parker#0501 comparing inventories with titles ....
@naive goblet how would you do it?
Encapsulation of Inventory objects or InventoryView objects
Even InventoryHolder is better even though is shouldn’t be used.
Anyone know of a server system that uses kubernetes for deployment? I want to deploy the same clone of a server just on different ports
@naive goblet event.getView() is getting the InventoryView object?
@golden vault Could you help me and RockyHawk with his plugin? The downloads are increasing insanely rapid and it looks like it are bots.
@compact sable why is the amount of downloads a problem?
It's not natural and we don't want to get banned for buying a download bot
So I'm reporting it now because cloudfare should stop them, but it isn't
every second 4-5 downloads will appear
just want to make sure because it is just very unusual
as long as you are not doing anything wrong, don't really see the issue. If bots make it through then that is on spigotmc to handle
I mean you can report just stating shouldn't worry all that much
Ya don't worry about it as long as you are not the one doing it which i doubt
Any of y'all know anything about RedisBungee & why the messaging channel doesn't work for it?
what do you mean messaging channel?
like the plugin messaging channel?
if so that only works if there is at least 1 player on a server. If there isn't a player on a server it won't work
There's a player online
I ran a command to prompt a response
And nothing is returning back
guys, since when it is not possible to create Worlds on Startup? never had problems with that
Exception in thread "main" java.io.FileNotFoundException: work/decompile-ee3ecae0/net/minecraft/server/Enchantments.java (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at com.google.common.io.Files$FileByteSource.openStream(Files.java:120)
at com.google.common.io.Files$FileByteSource.openStream(Files.java:110)
at com.google.common.io.ByteSource$AsCharSource.openStream(ByteSource.java:456)
at com.google.common.io.CharSource.readLines(CharSource.java:311)
at com.google.common.io.Files.readLines(Files.java:553)
at com.google.common.io.Files.readLines(Files.java:520)
at org.spigotmc.builder.Builder.main(Builder.java:539)
at org.spigotmc.builder.Bootstrap.main(Bootstrap.java:34)
Anyone can help me?
(No such file or directory)
its already telling you
dont know your code, so cant tell more
its saying, the path/directory is not existing.
so it seems like maybe you added a \ or / at the wrong place?
if not, idk more
ah nvm
no, i just use: java -Xmx1024M -jar BuildTools.jar --rev latest
??//
so at creating it with buildtools its showing this?
maybe @subtle blade can help you?
i dont know anything about buildTools
okok
remove the files except buildtools.jar
run buildtools again
also, don't run buildtools in command prompt either
use gitbash
buildtools has problems usually when ran from the command prompt =/
When I run BuildTools.jar (java -jar BuildTools --rev 1.15.2) I just see only this files and folder
BuildData
Bukkit
CraftBukkit
Spigot
work
BuildTools.log.txt
spigot-1.15.2.jar``` So where is BungeeCord? How can I get it for v1.15.2 ?
So why when I ask for BungeeCord, helper here always send me to BuildTools?
not sure who told your to use buildtools for bungeecord
but that is the correct link above to obtain bungeecord
Hello,
Looking for some help handling this packets issue. It appears that there was some change between 1.14 and 1.15 that has broken this. Has anyone here used PacketPlayOutGameStateChange post-1.14?
https://i.imgur.com/VyvUHBk.png
Already searched through there completely
@keen compass Here is the message : https://discordapp.com/channels/690411863766466590/690470011382267904/732184464532176960
well in either case not much to do other then just get bungeecord now
person must have not read your message carefully enough and probably assumed you wanted spigot which is what most people come here asking for 😛
Ahh
note that the person in question isn't a staff member either, most of us here are not actually and volunteer our time to help people as well 🙂
So, do you know how?
so just a simple mistake was all 😉
Ok, it's okay
going to have to find the appropriate build for that
It's too many, I don't know which build #number
gui.setContents((ItemStack[]) menuItems.toArray());
its giving me this error
ignore the "8"
@lofty meadow if you look at the build logs it says 1.15.2
you can't cast ItemStack[] to whatever array you are trying to cast to @lapis plinth
then how would I do it?
not sure what you are trying to do
Im trying to create a dynamic arraylist to add items to a GUI ItemStack array at any time i want
then use Collections
what are those?
can also do ItemStack[] itemStack = menuItems.toArray();
but you can't just simply cast though
quick question,the nether portal is not working. i don't have Multiverse installed,is that the reason why?
@keen compass I'm sorry, I still don't know where to see it😬
https://ci.md-5.net/job/BungeeCord/1500/console
@lofty meadow
@crude sparrow do you have a nether?
could try remaking the portal
stop casting it
@crude sparrow do you have a nether?
@keen compass i have "world_nether" folder
its giving me an error if i dont
Ok, thank you @keen compass!
could try remaking the portal
@keen compass Tried that as well,not working
Nether is enable/allowed in the config
ItemStack[] itemStack = new ItemStack[Inventory.getSize()];
Collections.addAll(menuItems.toArray(), itemStack);
gui.setContents(itemStack);
player.openInventory(gui);
@lapis plinth
An easier way would probably be to use
ItemStack[] array = menuItems.toArray(new ItemStack[menuItems.size()]);
that works too
kk
@crude sparrow do you have a border set for the nether?
doesn't #toArray(T[] arr) just cast to T under the hood?
it would literally be the same as the picture he sent above
if you do, then it is possible that the portal in the overworld will cause the portal in the nether to be outside of said border
@frigid ember It's not the same.
"Returns an array containing all of the elements in this list inproper sequence (from first to last element); the runtime type ofthe returned array is that of the specified array. If the list fitsin the specified array, it is returned therein. Otherwise, a newarray is allocated with the runtime type of the specified array andthe size of this list"
@frigid ember yes however toArray() returns Object[] not ItemStack[]
so while although the same in structure, they are still different object wise
and they can even contain the same stuff, but because of generics, the runtime JVM doesn't know that
no, not toArray(), but toArray(T[])
toArray yes, it does return Object[], but the other returns T[]
And just like the documentation says (the one theone sent), if the list fits within the array I give as parameter, it'll give me that one, if not, it literally casts the newly created array to T[] (assuming this is an ArrayList, wouldn't know about the other List implementations)
toArray() or not toArray(), that is the question?
toArray(T[]) just creates the array with that supertype
Hi! Can I register my own command on spigot plugin, instead of register it in plugin.yml, like a class extends Command ?
toArray(T[]) just creates the array with that supertype
if necessary*, if the one I provide (the one I pass as parameter) isn't large enough
first one won't throw any exceptions, second one throws 2 exceptions
ArrayStoreException: if the runtime type of the specified array is not a supertype of the runtime type of every element in this list.
NullPointerException if the specified array is null
no, but it does help in knowing what it can and can't be used for though
==: org.bukkit.inventory.ItemStack
v: 2567
type: PLAYER_HEAD
amount: 17
meta:
==: ItemMeta
meta-type: SKULL
display-name: Money
internal: H4sIAAAAAAAAAONiYOBi4AnOLs3JCSjKT8vMSeVmYPJMYWBgYLkosFKh+Z/Dw7mtO51qBWff52LgAiopSC0qyUwt5mTgKEmtKCktSi3mAipm5GBgDUvMKU1l2JJa6WUQFZFhkBLhlZNc6WkG5IcEG+T4e2YVmHvmhVUmOXuaeeYC5T0czXwqLZHUmpYkhpvmRBp7ZUTlBZYm5YYZ+BgH5aR6BBkm54aW+YcHVkRWRZr45QLlXSINokLSTf1D/HKjXJyyI6tCjSLDw7J8gWzf3MCqyBBXE78sv2xfF9cq36psA98qV0PfEEcT3ypfU9/c0Kqo3MhyP3e/XN9gL8u0CANboA8YAFwFWgkKAQAA
How do I get the internal of this itemstack?
the superType of both would be List in this instance
need to deserialize
the ItemStack is serialized
It is deserialized, I was just showing the serialized version
Internal shouldn't be messed with, the server uses that and believe that should be the texture
this internal is the money texture, and the item has no owner
so when you deserialize you, you use the api to get the Texture
how?
since it doesn't have an owner, you are going to have to use NMS to mess with the textures of it
or you could just set an owner for it and go that route
yeah I'll just use an owner then
the api way, means you don't mess with the texture yourself, the server will handle that
so that means you still don't need to mess with internal data
many sites exist for custom texture stuff
to either choose from or upload yourself
yeah I got the texture from one of those, but it seems a bit difficult to get the internal
@crude sparrow do you have a border set for the nether?
@keen compass I don’t think so,where do I check
Can I stop an item from being renamed in an anvil?
@lyric cypress Yes
is there an event I can cancel?
PrepareAnvilEvent?
Either that, so you wont even see a result, or just the InventoryClickEvent
ok thanks
@warm ginkgo Did you make sure to properly add the enchantment unsafe?
Hi! Can I register my own command on spigot plugin, instead of register it in
plugin.yml, like a class extendsCommand?
@lofty meadow Can anyone help?
Paper allows you to, not sure about spigot
What difference between Spigot and Paper?
@warm ginkgo This both outputs 10. So there is no issue in either approach
What version are you on? I tested it on the latest build
using packets how would i know when someone is done eatting food?
The non packet way:
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/player/PlayerItemConsumeEvent.html
declaration: package: org.bukkit.event.player, class: PlayerItemConsumeEvent
What do you mean by "not good"?
here, i just wanna minimize the use of bukkit events. i rather keep it at Packet level.
events are just a safe way to "access packets"
still rather keep it at packet level
then use hamsterapi or protocollib for that
The server handles the packets for you, synchronizes it with the main thread and lets you interact with them...
or make your own api
here, i just wanna minimize the use of bukkit events. i rather keep it at Packet level.
lol
Its not like bukkit handles and wrappes the events for you so you can interact with them in a convinient standardized way...
really no reason to interact with packets unless you really need to
not like you are going to process the packet any faster then what the server already does
how do you get the redstone badge on spigot?
hey, any spigot experts online that I can bounce a couple questions about first time setup off of?
@crystal solar You can ask and ill try to answer with what i know 😛
Awesome, thanks!
I'm running vanilla on an Ubuntu server. I'm looking at Spigot because from what I've read, it will easier to track down performance problems, and add anti-griefing plugins.
From what I think I now understand, I basically just build the .jar file on my box, stop the server, replace the vanilla .jar, move my world stuff from the DIM-1 and -2 folder, and reboot, putting me on Spigot.
Am I close?
how can i check if theres a sign attached to a double chest
Yes you just need to build the spigot jar with the buildtools jar.
Then replace your vanilla jar and start the server with a shellscript like always.
I never ran a vanilla server so i dont know the exact procedure for transfering but i think if you back up your worlds and run a clean spigot server you will be able to tell where you can put your old server files.
@stuck quartz Check the surrounding blocks. If sign -> check if placed against origin Block
is there any particular reason why the spigot site takes too long to load and download from right now
my internet is fine
is spigot's .jar also by default called server.jar?
If not, can I rename it, or is there something hard coded?
You can just rename it to server.jar
awesome, thank you very much!
One last question.. any favorite anti-griefing or server password protection plugins you recommend? We setup a small box for 4-5 friends, and within 48 hours we had someone connecting and just trashing everything within reach. Ended up having to restore from backup and banning the user by name and IP.
Also here is a little guide on how to assure high performance:
https://www.spigotmc.org/threads/guide-server-optimization⚡.283181/
If you want to play with your friends only you should use the build in whitelist.
Awesome, I'll check it out! Thank you very much for all the help!
gotcha, easy enough.
I'm assuming that works identically on Spigot, or that that is Spigot specific instruction, correct?
I can google, I don't want to waste too much of your time. Thank you again, I really appreciate!
Im pretty sure vanilla minecraft also has the same whitelist system
Not really Spigot related, or maybe not Spigot specific;
we stood our server up on an isolated subnet, on a server marked for recycle from work. We gave it a static IP from our block that we weren't using, and only shared that with a small group of people. And within a short amount of time, we already had someone connecting to grief. So are people just out there scanning WAN IP blocks for minecraft servers that are accessible? I mean, assuming you are on the default ports, I guess it would be relatively quick to run through blocks, but I'm surprised it happened so fast.
@crystal solar there is lists that exist that keep track of ports that services/software/games make use of
so when these bots scan your ip for open ports, they generally already know for what service it might be for
as far as I am aware, MC is the only game/software to make use of TCP 25565
so. When something is the only thing that exclusively uses a specific port, not all that hard to guess what it is 😛
so to answer your question, is there people out there scanning IP blocks, yes most definitely, are they scanning for specific services. No not usually.
if you are asking for help because it isn't listing all the modifiers, then that would be, because you only put 1 modifier into the collections is what it appears.
Do you expect the item to have mods?
Every Entity has base Attributes. Items can modify them. So even if an item has 0.0 (prob add operation) the Entity will still attack with its base attackspeed
You want to get the attackspeed of the player while holding the item or the modifier the item has.
After a "but" there should normally be an opposing opinion or argument rather than a random incoherent picture...
There is no guarantee that he uses minecraft modifiers on items.
He can just add some NBT tag or entry in a PersistentDataContainer, then check the item
in several events to change the players attributes.
NBT return the same values
There. Use his API
alright then, btw thanks for your help
how do i check if an arg is empty run code saying its emplty then if its not empty run code?
java method argument or minecraft command argument?
command
define "empty" do you mean if he does not provide the proper amount of arguments?
if they do /visit (player) how do i check if they do not put a player in then run code if they did not
i have this
if(command.getName().equals("visit")) {
if (args[0] != null) {
String visituuid = Bukkit.getPlayer(args[0]).getUniqueId().toString();
if (getConfig().getStringList("Players").contains(visituuid)) {
player.sendMessage("Teleporting you to " + args[0] + "'s cell!");
Location lock = new Location(Bukkit.getWorld(visituuid), 0.5, 95, 0.5);
player.teleport(lock);
} else {
player.sendMessage(args[0] + " does not have a cell");
}
} else if (args.length == 0) {
player.sendMessage("Please enter a username");
}
}
a command looks like this:
/command arg0 arg1 arg2 arg3 etc...
The String array representation is accordingly:
[arg0, arg1, arg2, arg3 etc]
In your case arg0 would be the first entry in the String[]
You need to check the length of the String[] in order to know the amount of arguments a player uses.
so args.length.
If args.length is 0 then he did not provide any arguments.
i tried
if(args.length == 0) {
//code to say you have not entered anything
} else {
//code
}
but it did not work
Did the "else" code run?
wait hold on, i think it worked now lol, idk what i did
k
wait nvm, i restarted the server and now the commands dont work and give an internal error thing
gtg now as well:/
does anyone know of a list of mob NBT tags? I'm currently using NoAI to freeze a mob but it works too well and stops everything, I want it to be able to move its head around and fall too so was wondering if there was a movement tag
NBT tags (formerly called data tags) allow you to set certain properties of an entity (or mob) in the game. NBT tags (formerly called data tags) allow you to set certain properties of an entity (or mob) in the game. NBT tags are used in game commands such as: /summon, /data, /...
I think you need to extend the NMS mob and write your own AI goals
oh, do you know a good way of doing that? I was kinda thinking there would be a movement speed attribute lol
Oh so you just want to stop the mob moving? Yeah then you can set its movementspeed to 0
movementspeed isn't on there though?
so I could do something like
Object handle = skeleton.getClass().getMethod("getHandle").invoke(skeleton);
Constructor<?> nbtCompound = Objects.requireNonNull(PacketManager.getClassNMS("NBTTagCompound")).getConstructor();
Object nbtTagCompound = nbtCompound.newInstance();
handle.getClass().getMethod("c", nbtTagCompound.getClass()).invoke(handle, nbtTagCompound);
nbtTagCompound.getClass().getMethod("setInt", String.class, byte.class).invoke(nbtTagCompound, "movementspeed", 0);
handle.getClass().getMethod("f", nbtTagCompound.getClass()).invoke(handle, nbtTagCompound);
pardon my reflection
Well... Why not use the spigot api?
final AttributeModifier mod = new AttributeModifier("ZERO", 0.0, Operation.ADD_SCALAR);
final AttributeInstance attributeInstance = entity.getAttribute(Attribute.GENERIC_MOVEMENT_SPEED);
if (attributeInstance != null) {
attributeInstance.addModifier(mod);
}
eg.
I was using this initially but some of the methods didnt exist anymore
Object nmsSkeleton = Objects.requireNonNull(PacketManager.getClassNMS("EntityInsentient")).cast(handle);
Object genericAttributes = Objects.requireNonNull(PacketManager.getClassNMS("GenericAttributes")).getMethod("d").invoke(Objects.requireNonNull(PacketManager.getClassNMS("GenericAttributes")));
Object uncastedAttributes = nmsSkeleton.getClass().getMethod("a", Objects.requireNonNull(PacketManager.getClassNMS("GenericAttributes"))).invoke(nmsSkeleton, genericAttributes);
Object attributeInstance = Objects.requireNonNull(PacketManager.getClassNMS("AttributeInstance")).cast(uncastedAttributes);
Constructor<?> newAttribute = Objects.requireNonNull(PacketManager.getClassNMS("AttributeModifier")).getConstructor(UUID.class, String.class, double.class, int.class);
Object attribute = newAttribute.newInstance(movementSpeedUID, "Skeleton_King AI removal", 0.0d, 1);
attributeInstance.getClass().getMethod("b", Objects.requireNonNull(PacketManager.getClassNMS("AttributeModifier"))).invoke(attributeInstance, attribute);
attributeInstance.getClass().getMethod("a", Objects.requireNonNull(PacketManager.getClassNMS("AttributeModifier"))).invoke(attributeInstance, attribute);
that looks kinda nicer tho
Wait. Are you on 1.8?
Huh. Have fun ^^
will your method still work?
Not sure. I think Attributes got exposed in 1.9
Oh, ok
yeah attribute class doesnt seem to exist on 1.8
did you import craftbukkit and look it up
Good morning!
I need some help, I am trying to make it so players can buy access to a region with in-game currency. I have 2 regions setup and ready to go. I just need to make them buy-able from in-game currency. I am aware that I can add them to a group so they can enter the region but I am trying to make this done via NPC with commands.
I was wondering if anyone could assist me. I would like for them to click an NPC (citizens) and be able to see a GUI (chestcommands + CitizensCMD) and be able to buy access to a specific region.
Thank you,
What plugin manages the bought regions?
areashop
Then what exactly is the problem?
Create an NPC -> link with chestcommandsGUI -> onClick run command /as buy [region]
is there a known issue with 1.16 maps? 🙃
Step 1) Uninstall Skript
Step 2) Learn Java
Step 3) Profit?
Isnt there a skript discord?
You just need some dedication.
Its always hard to get started, but once you are in the flow the experience comes naturally.
Just dont start with spigot/bukkit videos. Start with plain Java
Ok i tried to download "Eclipse" but idk didnt worked
I tried from like 3 days
Isn't it free ?
If you want to start programming then you need some basic experience with computers...
installing a program should be a no brainer
I have some experience
Yes its free. You just download the binaries and install the program
Binaries ?
like... if you are on windows you downlaod the .exe
oh xd
ok
Tool Platforms
Eclipse
Get Eclipse IDE 2020‑06
Install your favorite desktop IDE packages.
Download Packages | Need Help?
I hope you dont pay there. It looks overpriced as hell.
uh
its downloded
but when i click on it
it get me to here
whats this
From what I've seen server.pro has good performance, unlike other cheaper hosts I've seen
like... Epyc with 2.4Ghz baseclock is trash for minecraft
i need "JDK" ?
Yes
Yes. JDK is the Java Development Kit. If you want to program in Java you should install java... ill send a link
Ok ty!
https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
Here you can get jdk8
scroll down to Windowsx64
You need an oracle account to get jdk8 and there's no real reason to
I just want to code "FreeForAll , Tournament Plugin"
No no , I already have freeforall from an plugin
There are also a lot of websites that teach you java with examples etc. But if you find some nice videos thats fine too
idk
I've been recommending this one lately https://www.tutorialspoint.com/java/java_quick_guide.htm
Java - Quick Guide - Java programming language was originally developed by Sun Microsystems which was initiated by James Gosling and released in 1995 as core component of Sun Micros
Just make sure to not only watch the videos. Writing code is the most important thing.
It contains good information but it's quite long. ^^ that too
This is also jumping in cold water... bit dry to read
Yeah don't read it all in one go
Do you know how to code ?
nice
You know how to code "Like what" ?
hit him with create me a hashmap right now asking for a integer and a string Kappa
Ok "JDK" installed
Which one did you get jdk8 or jdk14?
Eclipse is being "INSTALLED"
noice
Just for the future:
If a program says it needs "X" -> google and download "X"
Alright then you need to read this before compiling your plugin: https://stackoverflow.com/questions/2540548/how-do-i-get-eclipse-to-use-a-different-compiler-version-for-java
i think even microsoft aknowledge that people are just dumb
I will "Wait for it to be installed 100%"
and now the updates install drivers for you
oh
You should have went with my JDK8 link...
i will send screen
does any server even use anything but 8?
Some use 7, but that's just bad
What should i select ?
I think for Linux Java 11 is standard at the moment.
I use 14.0.1 atm
The top one
Eclipse IDE for java Developers ?
yes
I think intellij has great maven and vcs integration. I only miss the project explorer on the left
Install ?
Yes... install
Maybe to support the devs 😮
@grim halo yeah its only showing current project
Ill screenshot this and when you come up with a plugin and donation link ill just post the screenshot below
expect lag if you have a bad pc
my pc sounds is so high xd
Huh really?
Yes i have " i 3 "
those IDEs are quite resource hungry
Not a single developer recommend watching a youtube tutorial or video on coding I seen so far, I guess you don't think so?
tbh im just lacking ram though
i3 doesnt mean bad. There are some 4 Core 4.2Ghz i3 s
Mine isn't so bad
oh xd
there are rly new and good i3s
and "BungeeCord" ?
99% Java
i mean everybody starts at one point
spigot is written in java. Minecraft is written in java. Everything you will come in touch with in the Spigot context is written in Java,
most have 4-5+ years of experience in spigot
brb
Besides databases those are mostly C++
obsly the query language is not in C++ bu its written in C++
Also you dont need to have a huge timespan of experience. I got a bit more than a year of java/spigot experience
Isn't "Eclipse" a virus xd ?
im moving from eclipse to intellij but how would I add maven to an existing project?
lol eclipse its one of the most used ide
next to visual studio for c#/c++
i started with eclipse and its quite nice for beginners
That i can confirm
Learn Java
xD
Create a new java project ?
did you learn java?
no ):
First look over a java tutorial off google
codecademy
then follow a youtube tutorial,wich will most likely also show you how to start a eclipse project and such
What should i choose from these ?
& tutorials
none yet bro
My friend gave me "Vanish Code"
x
d
When i learn , What should i choose ? from those
Dont even think about touching spigot for the next month.
Just learn Java.
Bruhh
Search for a tutorial that uses eclipse
You can try something ImSuma
How can i learn if i dont chooseo ne from these to learn on it ?
Ok send me a good one please ?
touched spigot with no previous java experience, now I made a core 😉
but you should learn the basics first @gloomy dew
'free java course'
How can i learn , Shouldn't i choose "New java project" ?
^
While yeah you can go from there its gonna be substantially longer to learn
press Window -> Show View -> Package Explorer.
And then right click on the package explorer that popped up, and press New -> Java Project
After that though, you should really learn Java.
Well think of it as any other domain
Downloading a modeling software without knowing how to model its not gonna do much
Ok i will do what you said @halcyon snow
or watch a tutorial :/
Ok i will
that'll actually let you know what you're doing
Just give me a nice video :p
Ok
How to Make a Minecraft Plugin | First Plugin (Ep. 1)
there you go
they still want you to know java basics
check if its eclipse though
Minecraft Hosting: http://pixelhost.org
We just expanded our website design services to Toronto Ontario, check out our brand new page for Toronto Website Design https://vervedev.com/toronto-website-design
In Episode 1 of how to make a Minecraft plugin we begin with the basic...
as they wont rly bother explaining every single variable type and such
This is good ?
How can i know the basics ?
should i sign up ?
if you want to learn java
Ok
tbh i wouldnt bother with anything paid
youtube and google stuff is more than enough
codecademy is free
just an email
I didnt chose it
if i done programming at a kids level so far in 2 years
you go to uni for that paper in the end,the rest you learn from home
they keep teaching shit that nobody uses or needs anymore
Not true
its all depending most unis have this problem
My brother goes to uni and he teaches me stuff
Really depends on the university.
electronic engineer
im on automation and applied informatics wich should be about programming robots and machines
Lmao
what we do? literally shit about old cpu arhitecture
ITS SO HARD
like not even 1 month worth of coding
Its not smh
I NEED 9 YEARS TO LEARN
i mean iv been doing it for like 5 year in java
rest is having fun in c# on unity
to make shitty games
Oh God eclipse
cuz its better
Uninstall eclipse
no :-:
man i still remember my first tower defense i made in unity lol
Use eclipse if you want. It's up to you.
Do you even need eclipse for Skript like wtf
Glhf
you wont go far
its easyer but you cant do advanced stuff
Of course it's easier, you literally can't do anything on Skript
Skript is bad for performance for anything moderately large
I use Skript to make a command that sends you the message "Hello %player_name%", when you type hello 🙂
i never bothered with skript went straight for java
^
skript devs aren't real devs :whistle:
Skid in the beginning, then you'll learn
if ur not that serious about it go for a minecraft plugin devlopment to get an ideea on how it works
noooo
try some very basic java only things first
don't go straight for plugin development
he already says he tries to avoid them though
is it weird i started coding & getting the hang of it without any previous java experience?
when i finish coding i can download the plugin i did ?
@frigid ember if you like it nope
like when i download a plugin from spigotmc ?
eclipse will use the code you created to construct a plugin
read some docs, looked at open sourced projects, and "skidded", makes sense now, most of the things you have to do.
everything can be done without internet on ur computer
downloading the plugin i did...
Maven compiler plugin will build stuff for you
@frigid ember I sorta did the same thing, and I sorta regret it because I think it's what caused me to get frustrated and lose interest
are we being mean?🤔
Yes
no
beside that yeah
everyone is saying learn java first tho, I will eventually when I have the time, but if i dont know a line, i'll just look it up in the docs. only problem is my arrow code 😄
you would be surprised how often people have conv in here
Can you guys see my server ?
No
No
If you advertise you're gone
explain better "see my server" you mean join ur server ?
@graceful vigil What did you mean lose interest? You mean lose interest in looking at open sourced projects, and learning how each section of code contributes to the goal or output of it?
hmm, oh
Stellrow yea xd
not understanding how the code works
usually i learn by needing it
?
iP -> Extra-PvP.McPro.Io
Yeah, entirely on me. I wasn't dedicated enough
Ban
ban
ban
:-:
As with IRC, do not advertise in any way, shape, or form.
i needed to make a cooldown system,i was looking how can i do one then i found out bout hashmaps
ah i see