#help-archived
1 messages · Page 22 of 1
is the world called 'world' in server.properties @south cedar
Have you registered your listener, Remence
actually I don't know if it's an event, i'm doing player.(whatever comes up)
is that an event?
No ;P
You want to force a player to break a block?
I started development yesterday 🙂
@subtle blade what the avg response time from bot,when it comes to sending the message?
yes
I want to disable block breaking once a player runs a command
@wraith dew
Then you'll want to listen to BlockBreakEvent, yes. There's a wiki on how to listen for events
alright thanks
level-name=world
is that a hashmap?
public static List<UUID> entities = new ArrayList<UUID>();
I'm clearing plugin.entities, although I'm not setting anything directly to null
Okay, I have my Listener class
if I run /listquests no errors
/killallquests error
/listquests error
/summonquest no error/killallquests error
/listquests error
/killallquests error
now how do I actually disable the breaking on blocks
In that order I run them.
Just tried
/listquests
/killallquests
/listquests
With no errors
when you do killallquests does it clear the hashmap?
You would have to keep track of a set of UUIDs for players that have disabled block breaking, Remence. Create a Set<UUID> somewhere (HashSet implementation) and when someone runs your command, add or remove them depending on whether or not they're already in the collection
Then in your BlockBreakEvent, if the player's UUID is in that set, cancel the event
Alright, i'll start that
@south cedar move this to private dm
ok
too many people are talking
I just threw a lot at you lol. You can get more information on HashSets on Google 🙂
Java functionality
Good 😄
Can anyone help me with setting up new kits with KITPVP config.yml
@south cedar Why the static btw for the arraylist?
To access them from Quest
Use dependency injection
yo @velvet halo, are you using a framework for dependency injection?
yeah, was just curious
When will version Spigot 1.16 be released?
Is this a good place for asking Spigot plugin development questions?
Dude, vanilla 1.16 isn't even released. lol
yeah..
Snapshot :/
Sure, Adam. Generally quick and concise ones. If you think it's a bit larger and more in-depth, the forums are likely the better place
Spigot's never released a snapshot build
as it should..
Nor should they ever. They're unstable and should not be made production
Beta spigot versions are a waste of time
Why?
Especially since people are going to use it for commercial/production use and then don't know why tf their server is breaking
Then they blame it all on spigot
Why would you release unstable software?
¯_(ツ)_/¯
Truth...
I'm creating a simple plugin, but getting this in the console when starting my server:
[09:46:21] [Server thread/WARN]: Initializing Legacy Material Support. Unless you have legacy plugins and/or data this is a bug!
[09:46:26] [Server thread/WARN]: Legacy plugin Time_Changer v1.0.0 does not specify an api-version.
[09:46:26] [Server thread/INFO]: [Time_Changer] Loading Time_Changer v1.0.0
I am developing the plugin using Spigot-1.15.2 and Java 13, when I first ran the server I used Java 8, but I've since switched to Java 13.
a) Why am I getting this message?
b) How do I/should I specify an api-version?
You should include api-version: 1.13 in your plugin.yml
1.13? I'm using spigot 1.15.2
its for compatibility
It's a minimum version
unless ur using nms it should work..
even though bamboo seemd to screwed me over once 😂
Ah okay thanks.
Now it's just showing [10:00:54] [Server thread/WARN]: Legacy plugin Time_Changer v1.0.0 does not specify an api-version. in the console. This is my plugin.yml:
name: Time_Changer
version: 1.0.0
author: Adam Morris
description: Changes the time in a server via a GUI
main: com.github.aimorris.timechanger.TimeChanger
api-version: 1.13
I'm exporting my plugin with maven, and the second time I export it it gives me the jar, except beside the name of it, it says shaded, what does that mean?
Ah okay
It means you are shading in libraries into your jar file to optimize your jar a bit more.
So it doesn't use all of the source code from the libraries that you use.
Only the code that is needed.
Depends on what you're shading ;P
I don't know what im shading
If you're shading any plugins or the server jar, not good. You should only shade a dependency that will not be present on the server at runtime
Say, Apache Commons IO
(actually that might be on the server lol)
http://maven.apache.org/plugins/maven-shade-plugin/ Look into the documentation for how it all works here
ok hold on
Your scope should be set to provided for spigot so it doesnt shade it into the jar
(or plugins)
ive yet to switch from eclipse
Okay so in this case you're fine. You're not shading anything extra
In fact, here, you don't even need the shade plugin
so Choco I thought that the shaded jar was the "updated" version of the plugin
I never used eclipse
because the first time I exported it didn't give me a shaded version
Lines 32 - 47 can be removed entirely
only the second time
You're not shading anything extra
in what case would I need to shade?
You should only shade a dependency that will not be present on the server at runtime
Say, Apache Commons IO
The server itself will obviously be present at runtime, as will all its dependencies (Guava, Apache Lang 2, GSON, etc.), and all plugins
This is pretty 5Head to me

lmao
aww shit we have twitch emotes?
dammit
I'm 8 million steps above you guys 
u should add twitch emotes tho... 👀
or at least just 5head and 3head
as those 2 emotes describe a developer the best
LOOOLL
Pog
PogU
just noticed we are spamming a very important text channel Pog
spamming an important channel with twitch emotes so its all good 👍
If only I could spam my own emotes 👎
guys my spigot username is so retarded I don't even know if I should link it 😭
I wanna change it
I don't think if anyone cares tbh
That sounded meaner than I think you meant it to be lol
but you're right. Not a huge deal
Is there a way for a plugin to know that an interaction with a sign was canceled by the built in spawn protection?
Listen for a higher priority event
Can someone help me I run spigot servers in a bungee but in chat it says [Owner] %PREFIX%MyName%SUFFIX%: message
You can then check if event.isCancelled() 🙂
sure but I mean specifically by the built in protection
ya
it cancels the event with no message to the user so then I get a bug report
was hoping to send my own message
?paste
an alternative is to listen for blockbreak and check if that location is now air or not
If I change my spigot username do I have to reverify?
naw what i mean is when someone right clicks a sign to use a shop the built in spawn protection cancels it before any plugins but it does not send a message so people think my plugin is broken.
why arent you setting the protection to like 1 block?
oh i thought it's breaking a block
i mean you can use worldguard to handle spawn protection instead
i think in server-proprieties is the field spawn-protection
not me the users of SignShop
so you can use its api to do things
A server owner installs signhop and ops themselves and they create some signs then their friend that is not opped tries to use the sign but spawn protection stops them. Then the server owner thinks signshop has failed because it is "not working". Then I get a bug report. And I have to tell them to set their spawn protection to 0 or deop and use plugins for perms and spawn protection. What I would like to do is detect when that happens on the server then just print a message to console, an op or the player.
oh i thought we're talking about your server
hmm
i guess you can read the server.properties file with a bufferedreader or scanner, and check if the spawn-protection is 0 or not
this is prob a crappy way lol
can't really think of a solution otherwise
do events not fire?
pretty sure they do ( i have only been thinking about the problem while at work, shhh) I can of course check if they are canceled which I already do in order to respect protection plugins. The protection plugins send their own messages usually so it is not an issue, so i dont want to spam them just because the event was cancelled and I don't know why
check if the sign is in the region of the spawn protection
ya could do that, I guess the next thing would be can i tell if the protection is enabled, hmmm
I think it is only enabled if there are ops?
does anyone have a link or know where to find one for the magic spells discord?
My Event Handler (in class TimeGUI):
@EventHandler
public void onInventoryClick(final InventoryClickEvent e) {
if (e.getInventory().getHolder() != this) return;
e.setCancelled(true);
final ItemStack clickedItem = e.getCurrentItem();
if (clickedItem == null || clickedItem.getType() == Material.AIR) return;
final Player p = (Player) e.getWhoClicked();
p.sendMessage("You clicked at slot" + e.getRawSlot());
}
isn't working, even though I've registered it in my main class's onEnable:
@Override
public void onEnable() {
Bukkit.getLogger().info("TimeChanger successfully enabled!");
this.getCommand("settime").setExecutor(new CommandSetTime());
Bukkit.getServer().getPluginManager().registerEvents(new TimeGUI(), this);
}
Anyone have any idea why this could be?
And I know it isn't working, because when I click something in the GUI, it doesn't get cancelled.
are you supposed to final those things?
I used this snippet https://www.spigotmc.org/wiki/creating-a-gui-inventory/
hmm check if e.getClickedInventory is null,return
whats happneing
then check if e.getClickedInventory.equals(inv[your inventory])
@solar prism When I click on an item in the inventory, the event handler is not being called.
any errors?
No
if you System.out.println a message in that event, does it print out in console?
How do I do a nullcheck on this?
configsection_wbcworldregistery.getKeys(false)
The method does not return a null for me to check against, so how?
I cannot trust the player to not listen to me when I give instructions in how to use the plugin (so they don't get a NullPointer), so naturally I want to
Code some form of backup so the plugin does not break entirely.
Check if the config contains that path first?
its a bit strange telling without knowing what it actually does
It does. But I have intentionally cleared the section of all keys (I am testing the code to make sure it does not break).
Here's the Yaml:
wbcworldregistery:
And a example of when it is properly used:
wbcworldregistery: world: enabled: true world2: enabled: false world_big: enabled: true world_biggest_shit: enabled: false
Code used to get the section:
ConfigurationSection configsection_wbcworldregistery = getConfig().getConfigurationSection("wbcworldregistery");
Checking if the config contains the path wbcworldregistery should do the trick
Hey, I wanna make it so that in the config.yml there is a part where you can enable/disable join/leave messages using booleans, how can I set that up? I already have 2 classes, one for my join message, and one for my leave message
The leave and join messages are all setup btw
I just worked out that e.getInventory().getHolder() != this is true.
I just wanna enable/disable them using booleans
If I put this in yaml it works perfectly and I get no nullpointers:
wbcworldregistery: world: enabled: true
But that's not what I am concerned about. I want to do some form of nullcheck to protect my plugin from user stupidity.
As in nullcheck
configsection_wbcworldregistery.getKeys(false)
You could check if the set isEmpty()
Do I really need this check? if (e.getInventory().getHolder() != this) return;
@golden vault YES! I will test it immediatly.
I have a good feeling about it.
Solution was just to do
configsection_wbcworldregistery == null
in the if statement.
could not use isEmpty because ConfigurationSection had no such method.
configsection_wbcworldregistery.getKeys(false).isEmpty() = nullpointer.
It's that doing that overall (getKeys) when the section has no keys at all seem to end up with a NullpointerException. So I cannot do isEmpty even if I want to because the method getKeys itself instantly triggers a nullpointer.
But you led me to a solution anyways. So thanks @golden vault 👍
yay, I thought you were already checking if the section was null and it wasn't and you were getting an npe on the list of keys.
or the key itself
Nah I emptied the "section" of all keys intentionally because I am trying to safeguard against user input so they don't end up breaking the plugin and then
coming to cuss at me later on. One should always try to safe guard against user input whenever they can unless it's a vital operation that must fail/crash so you don't get "dangerous" results later on. Atleast I think so. In this case since I got a backup system elsewhere in the plugin (and it's not so vital), I can simply elect to display
a message when this occours "There were no world settings to load from the config".
yep always assume the user will mess something up either accidentally or on purpose
And crash it or disable the plugin or something if the operation absolutely must have user input and cannot provide it's own. In this case, I can provide my own input (the error message in this case).
Probably sanitize the input too if it's something small that can be corrected without giving the user a result they did not expect.
Hello guys!
I have a question regarding global bungee-cord bans, so i am making a server and it has been quite a while since i have last done, i have got most of the stuff set like protection and what not, the only thing i am not sure how to do is global bans, for example if someone gets banned from the anti-cheat (NoCheatPlus) in skyblock server, they still can join after that, can anyone please help me figure this out? Thanks in advance!
lol
wasn't there a hologram api that was fairly popular and worked with a bunch of different versions?
one that faked armorstands using packets instead of real armorstands ?
you can still use holographic displays no?
fastest hands in the east
oh it's still only on bukkit?
@golden vault what would you suggest over holographic displays
yeah but it workjs with paper in 1.15
im still using it whenever i work with holos
well if it works... thanks
https://www.spigotmc.org/resources/api-hologramapi.6766/
this is also good
anyone happen to know if holographic displays allows for dynamic hologram locations?
oh there she is
#teleport
that should do it
hm no maven repo
nvm found that as well
today's theme is "I am blind"
What’s a good anticheat that has auto banning system?
help
i downloaded world guard
but i didnt work
even i /rg doesn't work
i need help
Did you download the correct version ?
Why would you want an anti cheat with an auto banning system lol
Why wouldn't you 👀
answer me pls
U need WorldEdit too
i have
They would be better as a tool to prevent cheating and handle yourself case-by-case rather than potentially lose players through false positives.
@dusky herald You only know of shitty Spigot anti-cheats 😉
@finite belfry Check logs for errors
Related to WorldGuard
what do I do if I dont have a permissions plugin installed but I need to have a permission to do something do I have to download one or is there a way
if I had too would luckperms be better or permissionsex
U could use Bukkit's perm system
But I wouldn't bother with it
Easier to just use Luck, or PEX
which would you recommend
ok is there a way to do chat prefixs or do I have to use another plugin
It's not. But you'll need to invest in a pretty expensive anti-cheat
If you want something reliable at least
Only paid
I wouldn't ever have autoban enabled for a free anti-cheat
Not saying they aren't semi ok, but they false like crazy
I see
Related to WorldGuard
@lusty vortex
where can i check logs? sorry i am new
/logs/latest.log
thx
here is my log
pls help i cannot find errors in the log
@finite belfry Check logs for errors
@lusty vortex help
Jesus lol
?
It's fucked
what is freaked
Everything LOL
Bro it takes like 5 minutes for this thing to even boot up
Caused by: java.lang.UnsupportedOperationException: Custom generator is missing required method generateChunkData
at org.bukkit.generator.ChunkGenerator.generateChunkData(ChunkGenerator.java:117) ~[Spigot_Latest.jar:git-Spigot-e7dc2f5-ce66f69]
at org.bukkit.craftbukkit.v1_15_R1.generator.CustomChunkGenerator.buildBase(CustomChunkGenerator.java:137) ~[Spigot_Latest.jar:git-Spigot-e7dc2f5-ce66f69]
Disable that custom generator
@lusty vortex umm i found on google for 15 mins and still do not know where can i disable it...
so I am wondering, what is the most efficient vote plugin? I know there is voting plugin, but it seems to have some flaws efficiency wise. I also have discovered SuperBVote but haven't tried it out yet. Does anyone have any suggestions for a good vote plugin? Thanks.
dude help me first
@finite belfry with the timed rewards plugin are you trying to give them money for playing or items?
also what does the dynamic icon.jar do?
nvm that plugin is from 2014 and most likely doesnt work with your 1.15.2 server and it was bound to have an error after 6 years of mc updates.
banhammer has an error in the plugin name
legacy plugins is just a warning and can be ignored
dude i think you just have outdated plugins @finite belfry
and some stuff you did just doesn't make sense. like you have the pex addon but no pex?
..........ok
@tribal granite i deleted all old and not making sense plugins
but dont work
is there a beta/prerelease version of spigot for 1.16 available to the public?
no
@marble wagon you can run 1.16 but no plugins. you can use datapacks though. you can check out vanilla tweaks if your interested
when the 1.16 version comes out, can i just replace the vanila server.jar file in my server directory?
Does anyone know of a plugin that I can use to bind console commands to a book ingame? (So when a player clicks the book a command is run and they lose the book. Basically like a voucher)
@marble wagon NuVotifier and GAlistener I think?
Did the recruitment forum section get deleted?
yes @marble wagon
?services
If you wish to request or offer development/art/building/administration services, please do so at https://www.spigotmc.org/forums/services-recruitment-v2.54/
Thanks
Who know any Good Combat Log Plugins
CoreProtect? It logs nearly everything
Oh, you can code taht yourself. Just use a player disconnect event
How
Just add a event listener. Im sure you will find everything on the Web 😄
@tribal granite NuVotifier & VotingPlugin
Hello, can you help me with one minecraft command?
I want to kill all phantoms under 4000/-4000 x and z coordinates
i made this but it isn't working
/execute run tp @e[type=minecraft:phantom,x=4000,z=4000,dx=0,dz=0] 0 -100 0
Hey guys. Save for Reflection and NMS, is there a way to get a list of all the currently registered, per-plugin command on the server, including the dynamically loaded ones ?
Currently plugin.getDescription().getCommands is the only available option, and it only shows the commands in plugin.yml, I reckon
thats the only API supported way of registering commands
@celest garden why not /kill?
or /minecraft:kill, not sure how /execute handles plugin commands
the CommandDispatcher once had a method to write to command tree to file
does somebody know where that went?
Can anyone help me with bungeecord the bungeecord groups arent working
can someone help
ha, got it
Files.write((new GsonBuilder()).setPrettyPrinting().create().toJson(ArgumentRegistry.a(dispatcher, dispatcher.getRoot())), fileIn, StandardCharsets.UTF_8);
wonderful, only 15k lines
Json looks so good but it's so ugly to write in
well, you are not supposed to write it
well the isuse is that you're doing it all in a single line of code
you're suppoed to keep a single gson object
and use methods to make it cleaner
this is debug code, i dont give a single shit how it looks, lol
its invoked exactly once
he was speaking about the actual json file, not the code tho
hmm, i dont personally think it's ugly
in which format will it look cleaner?
you're 800 lines in, which no sql storage format wont make it look like that xD
why are you arguing? lol
am just trying to visualizing the servers command tree for debug
btw it's safe to access blockstate asynchronously right?
@silk bane should be I think
cool
yes, in spigot a blockstate is just a copy
ah, i misread. i thought you meant that json is ugly. that's what i was referring to
creation of block states (think chests) can be heavy
argh
i see
wait
does blockstate really copy the whole chest inventory?
it doesn't seem to
use block.getState() to get a snapshot state of a block which will not be modified.
from javadoc
should do
see CraftBlockEntityState#createSnapshot
its saving the TE to nbt and creating a new TE from that nbt
ah craftblockentitystate also implements blockstate
is blockdata cheap to create at least?
i don't think blockdata contains the contents of a chest
@hoary parcel isnt that what getState does anyway
yeah doesn't looks like craftchest stores inventory data
which craft chest? 😂
there are 3 vlasses names like that iirc
block data, material data and the state
the one that extends blockdata
since creating a blockstate every tick is not happening
gonna try blockdata instead
i want to kill all phantoms from x:-4000 z:4000 corner to x:4000 z:-4000 corner
yes
i want to enable on my server phantoms above 4000 border
disable it under 4000
but i don't know how to do this
wait, @silk bane i swear i know you from somewhere
nope
is that mr aac himself
So what should i do?
is it possible by worldguard?
Thanks, worldguard works
is #help-archived like a place where I can get help with plugins and skripts? 🙂
yes
Nice
Fun fact! Discord has a chat history so we can see your messages forever after they've been sent! You don't actually have to repeat yourself 🙂
Sorry
Was about the say the same ;P Google goes much further a distance than we will
"potion plugin Spigot" yields tons of results
It looks like it's config based so you have to edit there
GOD DAM
Dude, you wanted custom potions lol. Do you want these custom potions to be made for you automatically?
You have to put some sort of effort into making something custom
Yeh What i can do ingame
hmm talking about ingame,i need to start making some sort of inventory-config edit system
Hey so I I'm useing buycraft lates version for minecraft 1.8.8 and skript dev25 for 1.8.8
But my server can't run a command in buycraft with skript, I dont understand because many serveres use skript to buycraft.
My skript is custom it made lik this:
Console execute this command in buy "Rank {name} Premium" and it the server gets the command but nothing happens?
https://www.spigotmc.org/threads/buycraft-and-skript-notworking-1-8-8.431254/
sadly not alot of us are using skript... youl have to wait for a answer on the topic
*thankfully
Then Console doesnt have access to the command
yeah it depends how you look at it @raw nacelle
Because, not all commands can be used by console
I don't know specifically why it's not working for you.
Thx ! I will look into it
or, it could be a different reason why it's not working
Not really enough information provided.
What does u need? the skript?
Maybe it's not working because you have it set as
if player has permission C
Console isnt a player
so it might be stopping there
oof just 1 sec
Maybe add a condition for if it's console as well?
Add what? 🙂
or remove if player has permission "C"
and see if it works without that condition first
I will try to remove permission of player
but here is my skript
ooof lets go it workt
yes, so add another condition for the console then
Console doesnt need permissions, so that can be it's own thing
Can u make the condition because i have no idea what u'r talking about. 😅
command sender is console
or
command sender is the console
or command sender is console w/e works
I'm not too familiar with Skript, I just see an example in the docs
Right now it works becase i removed the player's permssions but if the permissions it removed the console will just add player to C, so if the player are in B, will the player set to C-premium thats a big problem.
executable by: console
trigger:
if arg-2 is "Premium":
execute console command "manuadd %arg-1% C-Premium"
loop all players:
send "&a&lBroadcast&7 -&r &e%arg-1% &7har købt &5&lPREMIUM&7. &7Tusind tak for din støtte." to loop-player
send "&a&lBroadcast&7 -&r &7IMENS DER VAR OP TIL &e20%% &a&lRABAT&7! i &a/BUY" to loop-player
stop
You could always revert the command back to what it was
and make it only for players
and make a seperate command that does the same thing, but dedicated for console
So i found out that the console can't understand if player has permission
so i made this:
if {Rank.%uuid of player%} is not set:
and that work so i think if i use this the problem will be gone? :)
if {Rank.%uuid of player%} is "C":
It might work, just test it out
but bro! Thx for the help! !
yea i think you can figure it out from here, lol.
Thx xd
DeathStrike_x lost connection: Internal Exception: io.netty.handler.codec.DecoderException: java.lang.NumberFormatException: For input string: "ickaxe"
anyone can explain why this error?
players getting kicked mid game
I know this is a really common issue and I can't seem to figure it out, went trough a thousand threads already... level-name = world resetting, can't get rid of world world. Please help someone 🙏 dm me please
@stable egret Because you're parsing a string that isn't a number to an int.
who of u knows how to make your own maven dependency and for free
It has to be a number.
any idea which plugin causing this?
cos im making an API, it has a couple of maven dependencies itself, i don't want users adding its depencies, so they should just add mine and maven adds my dependencies
one of your plugins might also be messing with packets
how do i make my own maven dependency
ok thanks
does setNoAI clear the entity's goals?
To my knowledge, you have to host your own repository. Free ones like Maven Central or the likes won't host yours because it works with Bukkit which is not hosted on central
@boreal tiger as far as I know it just stops the entity from ticking
so i guess its pathfinder state would be frozen
yay
AI would include everything the mob does, movement and all that is included with AI.
by the way, if you just want to disable the pathfinder, check out Mob#setAware which i may or may not have PRd
You might also be able to find someone nice enough to let you use their repository, though that depends ¯_(ツ)_/¯
or u can host it on GitHub?
Could also look into https://jitpack.io/
github?
jitpack's restrictions might be less limiting, yea
is jetpack free
yep
Can you confirm central being picky with plugins?
I remember hearing that somewhere
never published there, but, basically, they prefer all your dependencies to be on central
That's what I'd thought
@silk bane I found it, but I was dealing with cows so I cant use it. thank you though 👌
but cows are mobs
wait are they 😮
well they extend mob
ah yeah Cow does extend but EntityCow doesnt :/
Yes
yeah
good news
😂
#getBukkitEntity
Though it should have pathfinders, so 🤔
Are you just trying to set NoAI to true? ;P
nop xD I wanted to change the goals
I guess I'll use this opportunity to learn more about reflection
Yea, that should be doable. Cows have pathfinder goals
MethodHandle time
It's part of EntityInsentient I think
Unless that was changed in recent versions. Been a while since I've touched that
yeah, it does have the pathfinding goals 👌
can i get some help with a plugin ? or is it just general spigot disc
you can get help yeah 👍
anyone a good at enjin websites
oh nice ty, so im trying EssentialsX and GroupManager i havent worked on these for a few years but now when i add permissions i cant use the permissions for some reason
We generally advise against GM because of how old it is
LuckPerms is the modern go-to
oh aight thanks i actually thought of that gm might be outdated thanks bud
What's the difference between fields b and c of the PathfinderGoalSelector?
field b seems to be used to remove path finder goals
I think it's pathfinder goals vs target goals or something like that
;P
ahahha thanks konsolas
No you're fine to use it. We just can't use those mappings to name them if the occasion arises
right
mhmm whats the main difference between paper and spigot?
paper has more features and is faster, but might be less stable and/or might not replicate vanilla behaviour perfectly
yeah friend of mine suddenly hit a brick after updating to a newer paper..
you should tell them about it if that's the case
with a certian plugin,armored elytra..
might be the plugin itself at fault
rather than paper..
jeez dude.. worldguard its killing my custom entities again
is there an alternative to worldguard anyone knows by any chance?
Paper has their own discord
Spigot has their own discord
It’s generally looked down upon to talk s abt paper here
Anyone do enjin designs? Msg me for more info"
Server hiring forum
I'm just guessing, but I would say that this is like the last place you'd find an Enjin designer
??
lol
Where can i find one i have been looking for ever
prolly on Enjin
but where would the designers be
idk, google if there's an Enjin discord?
Everywhere is the last place you'll find an Enjin designer
Xenforo
Everyone? Everyone uses different things.
Some people use forums like XenForo, some people make their own websites
Xenforo is the most popular
If you insist on using Enjin (which is still a valid option), yes, we have a services forum where you could likely hire someone to help
?services
If you wish to request or offer development/art/building/administration services, please do so at https://www.spigotmc.org/forums/services-recruitment-v2.54/
It's not that it's a bad website, you just don't hear much about it anymore is all
I personally think it’s a bit outdated
is XenForo worth buying?
Totally
If your server isn't that large I don't think it's worth it
^^^
who knows how logni t takes for jetpack.io to see your release
choco?
For a small server what is worth buying
i am using jetpack it is working wonderfully, i released one release, but the second isn't shown
thanks choco
For a small server? Enjin
Forums may not get used as much as you think. You need a community with which you can interact with outside of the server
^
I don't know, Retrooper. I'm not entirely familiar with jitpack
Forums can be pretty dead for a while
I know, forums are starting to get dated.
Honestly I recommend waiting to have forums until you have a player base
cough discord is killing forums
They still use Enjin to my knowledge
Did they switch?
Yea, finally
Huh. They were partnered for a while
Maybe when they partnered with Minecraft they figured "Ah screw it"
Xenforo is just way better for bigger communities
How much is it
$160
a year
There’s a support fee you can pay every year
Even still, it's why I don't think it's all too worth it for smaller servers. It's a big investment when you can invest instead in hardware or plugins
Like I have a Xenforo version from like 2014 lol
Yes 100x what Choco said
Forums will be more successful if you have a player base
Unless you got money to splurge on
If players see dead forums you are less likely to ever get them used
160 perm?
Idk if they offer plans to host for you
They probably do but with more $$$$
you need a website
You need Linux experience for any of this
You'd probably also have to pay for any kind of custom designs you want on your website
so for a small server what is the best host and what is the best host for a big server (not self host)
Honestly, a website at all isn't necessary for smaller servers. 
Small server no host at all
It should be your last priority
but how can u sell ranks and stuff then
Just stick with Enjin.
and give accouterments
Tebex
Tebex is the primary thing ppl use for shops
For a small server I recommend a discord and tebex, both of which are free
Once your server has an active playerbase of 50 or so I would go down the route of forums
:ssss
I would at least develop my own website with my own features
for things like reporting players, etc
Craftingstore is good for donations
and then later when it grew just buy XenForo or something
this video is sponsored by squarespace...
Yea you could have a very basic website for reporting
Set-up a discord channel for reporting
Doesn’t sound organized tbh
Works like a charm and you have a nice announcement system
That's what I did in 2011. I made a website, just for registering, running donations, and reporting players, lol.
and posting news
o sick
my old domain name is available lel
bought it
just cause i want it
Maybe I'll make a factions server 🤔
and then build a player base
and then I can launch my actual project I care about
hey, this exists: https://namelessmc.com/
this is great for small servers
open source forum software with minecraft integration, what more could you want
So if im starting a mini games server, Soon with a small budget and want a website alot like mineplexs (Support, Shop and staff list and forums) where should i host
I am confused xd
Is there any way to save gamerules like no fall in a map download. I want to publish my map but I want things like gamerules to save is there anyway I can do this. Ping or dm me
pretty sure gamerules are stored in the world data already
So if im starting a mini games server, Soon with a small budget and want a website alot like mineplexs (Support, Shop and staff list and forums) where should i host anyone got advice
I am confused xd
On a Dedicated Server
well personally I'd recommend namelessmc
or go with other recommendations people made above
How does nameless work
It's a content management system.
it is CMS software you host yourself like xenforo, wordpress, ghost, etc. but targeted towards minecraft servers with in-game integration
^
Specifically made for Minecraft
I've personally never heard of it until you linked it though.
How do i host it
You get a web host
and download the files and upload them to the web host
So you would have to purchase a webhost, and a domain name if you so choose.
there is shared hosting as well: https://namelesshosting.com/
but you won't be able to modify the source code, upload your own themes, etc
or, if you have a dedicated server you could just run a web server off your dedicated server as well
u know its doomed when your comp compiles java code in 95 seconds
and how do i make it
tf are you compiling there?
set up a webserver and download these files. If you don't know how to, look up a tutorial or use shared webhosting
the entire maven directory or something?
lol
I heard Maven is having issues possibly
its like a 250 class project
That could have something to do with it
i use gradle
afaik gradle uses maven repositories
yep
@sour dock is there a way to set it up then upload files into a host?
its just more etooling over maven
@frigid ember yes, that is how you set it up?
Look up a tutorial on how to install it?
no, you should be willing to do research yourself
if you aren't then hosting a website is not for you
ok
This is all like, basic level stuff. Just read a tutorial, and you gotta be able to figure it out
So I created a custom NMS entity, how do I register it now?
I found different resources with different ways of registering the entities so I guess there is no "correct way" of doing it?
Not trying to come off as a dick, but it's really easy.
It's too time consuming to walk you through the process.
they have a support discord but please keep in mind that everyone is doing this in their free time and they're not going to walk you through installing it (hopefully, for their sake)
this isnt even really the place to be asking for support to install CMS, etc
I'm working on a minigame plugin thing, but I feel like my design is bad:
Should I be creating an instance of the minigame every time it starts instead?
Because having once instance is going to make it hard to run multiple at once, so I tried using events which works but feels hacky
(ie passing players to start and end of minigame and doing stuff to the players in those events such as)
@EventHandler
public void onMinigameStart(MinigameStartEvent event) {
ChatUtil.broadcast(event.getMinigame().getDescription(), event.getPlayers());
}
obviously needs some adjustments to pass through scores and stuff but how would you guys suggest doing it because the design feels bad
Hey does anyone know how to make skulls render more quickly in guis?
It takes sometime because it has to query mojang's api iirc
Any way to cache them?
I think you could yeah, you'd have to query mojang's api manually. Someone posted a resource in the forums
https://www.spigotmc.org/threads/tutorial-how-to-cache-player-heads.349226/
hey guys can i asl why this is not woking
on chat:
if player has permission "c.op":
set the chat format to "&f[&b&kOP&f] &f[&c%player%&f]&f %message%"
else if player has permission "tier.3":
set the chat format to "&f[&eTier I&f] &f[&7%player%&f]&f %message%"
else:
set the chat format to "&7[&fTier I&7] &f[&7%player%&f]&f %message%"
the indent is correct its just discord shrinked it
@dense ridge couldn't you just store the itemstack?
hello can someone help?
i don't know the answer so i politely ignored
k
@dusty topaz this looks suspiciously similar to my minigames plugin 🤔
I store 1 instance for each game
yeah not saying you stole it or anything lol
this is the abstract game class
and this is an example game https://github.com/Derkades/Minigames/blob/master/src/xyz/derkades/minigames/games/Elytra.java
Well, for one, the timer annotation is a useless middleman. You'd accomplish the same thing just holding an int field
choco I finished creating my nms entity but I'm not sure how to register it. It seems to have changed in 1.15 again?
Haven't touched registry overrides since like, 1.12. My knowledge is far too out of date for that
right np
@subtle blade yeah thats true
but my idea was actually going to be to add it to ones with a timer
as others may just have goal requirements to end
would that be a valid use?
To read a yaml how is it? It is that it returns null with this:
File file = new File(plugin.getDataFolder(), "messages.yml");
YamlConfiguration messages = YamlConfiguration.loadConfiguration(file);
If you want skript help you’re better off on forums tbh
on chat:
if player has permisson "c.op":
set the chat format to "&f[&b&kOP&f] &f[&c%player%&f]&f %message%"
else:
if player has permisson "tier.3":
set the chat format to "&f[&eTier I&f] &f[&7%player%&f]&f %message%"
else:
if player has permisson "tier.1":
set the chat format to "&7[&fTier I&7] &f[&7%player%&f]&f %message%"
kk thanks
@hot fable have you made sure the file exists? 😉
@hot fable file not found i think
Why can't you run bukkit related stuff asynchronously?
there is a chance 2 bukkit methods could run at the same time which causes issues
Not even that. It's more so the fact that Minecraft wasn't designed to be accessed (mostly modified) concurrently
You could have two threads. One trying to set the block the other trying to fetch it, you're going to end up with some data racing
You’re doing something wrong if you need to run the API async
I don't, was just wondering.
Thanks 🙂
can we tick worlds in parallel tho
as-is, no
they might have cleaned some stuff up, but there is a lot of state in play
😦
Can Someone Send Me a mob stacker plugin
for when there is 8 pigs they go in to 1 pig ???????
taskId = new BukkitRunnable() {
@Override
public void run() {
for (Player player : players) {
if (player != null) {
double blocksWalked = Math.floor(player.getStatistic(Statistic.WALK_ONE_CM));
player.spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText(ChatUtil.color("&6Blocks walked: &e") + blocksWalked));
}
}
}
}.runTaskTimer(instance,20L,20L).getTaskId();
How would you set the duration of the action bar? Right now it doesn't update every second
what o.o
wtf
sleep the main thread 👀
isnt it a separate thread?
I want to set the duration of the action bar, not freeze the server
idk how bukkit runnable works
it's running the task every 20 ticks
oh ok
Who know any Mob Stacker
Are you sure you want to track the CM statistic?
Yea
I was reading up on how you should track blocks walked
And there was a lot of shouting about use the statistic
Yes, that’s why a lot of plugins you see will behave the same when it comes to that sort of thing
But my intuition would say you should keep track of meters not centimeters O.o
This is a BungeeCord plugin question!
I'm trying to send a message to all staff members when a spigot server goes offline or online. I'm doing that by pinging every server every 5 seconds and then seeing if the result if different than last time, if so then, send a message. If the result of the current ping and last is the same then nothing will happen. Right now nothing happens. I get no messages at all. When I ad a few debug messages they sometimes do and sometimes don't work. How reliable is the ServerInfo#ping method?
This code is in the onEnable method
https://pastebin.com/nW4e1Vj9
WALK_ONE_CM sounds like centimeters
I need to track blocks walked by players for a minute
damn it protocollib why isn't it an enum
Can Someone Send Me a mob stacker plugin
Dude, seriously. Google things. lol. We're not going to make your server for you
https://www.google.com/search?q=mob stacker spigot brings up 5 results
So I need to track the blocks walked in the player move event?
I don’t really recommend that
You don’t really know how many blocks a player moves per event
You can get the statistic at 0 minutes then get the statistic at 1 minute
Cast to CraftWorld, getHandle()
((CraftWorld) world).getHandle()?
Why do you need it?
That wont work @wanton delta
how come?
Just checking stuff out
If the statistic hasn't updated when it's checked after
Then it won't be accurcate
- I also want to display it to the player in the action bar
Now the only way I can think of is using calculus lol
Lol
Keeping track of the players velocity and running an integral
-_-
And I don’t know how to get a velocity, but I think there is a way
entity#getVelocity
event.getTo().clone().subtract(event.getFrom()).length()
Wait why not just checking the statistic?
Statistic doesn’t update frequently enough
That specific statistic? Because I use Statistic.PLAY_ONE_TICK in a plugin and it updates every tick XD
wait it doesn't lolwut
O_o
That's sloppy
maybe it does in paper
You could use a Reiman sum every tick
It should clone
XD
hehe
True
thanks for the help
unfortunately its behaviour can't be changed now
Every tick get the velocity
Well... it can lol.
And add all the velocities together
Plugins just wouldn't be happy about it
Lol
which is why it can't be changed
public void onRun(PlayerMoveEvent event) {
Player player = event.getPlayer();
World world = player.getWorld();
Location spawnLoc = player.getLocation().add(0,2,0);
String tipo = plugin.getConfig().getString("mob");
if(player.isSprinting()) {
Entity mob = world.spawnEntity(spawnLoc, EntityType.fromName(tipo));
}
}```
im trying to get from config but "fromname" is deprecated can it still be used?
The easiest way to keep track of player walking is to run a timer that keeps track of their current position. The next time the timer runs, compare the current position with the last position. If the distance isn't too far (teleporting) then increment the distance walked
Just not sure why they thought it shouldn't be cloned, especially when there's a getTo() that validates it
Location to = event.getTo().clone();
Location from = event.getFrom().clone();
to.setY(from.getY());
double distance = to.subtract(from).length();
Does this look fine?
You can skip that validation by modifying the mutable location
If you are gonna use playerMoveEvent, be sure to check if they aren’t just moving their head
ask the bukkit developer who wrote it who has probably long since left the project 😦
It will optimize it a bit
No
It should have been an interface
like half of bukkit's utility classes
no, plugins need to be able to construct locations
^
This is a BungeeCord plugin question!
I'm trying to send a message to all staff members when a spigot server goes offline or online. I'm doing that by pinging every server every 5 seconds and then seeing if the result if different than last time, if so then, send a message. If the result of the current ping and last is the same then nothing will happen. Right now nothing happens. I get no messages at all. When I add a few debug messages they sometimes do and sometimes don't work. How reliable is the ServerInfo#ping method?
This code is in the onEnable method
https://pastebin.com/nW4e1Vj9
World.getBlockAt(x, y, z).getLocation()
public void onRun(PlayerMoveEvent event) {
Player player = event.getPlayer();
World world = player.getWorld();
Location spawnLoc = player.getLocation().add(0,2,0);
String tipo = plugin.getConfig().getString("mob");
if(player.isSprinting()) {
Entity mob = world.spawnEntity(spawnLoc, EntityType.fromName(tipo));
}
}```
so i made the config but fromname is deprecated, what is the new form? and if there isn't a new form can i still use the deprecated form?
and what if i want fractional values in my location
.add() & .subtract()
that's a bit horrible
Could even have World#getLocationExact(double, double, double)
so to construct a location i have to make the server load the chunk and a block at this location in the world
there's nothing about Location which means that its implementation needs to be hidden
Could even have
World#getLocationExact(double, double, double)
@subtle blade are you talking to me ;_;?
No lol
@pearl pawn No, they're ignoring questions lol
;_;
yeah choco, answer the questions that you are obligated to answer
Lol
why should it be an interface @subtle blade
Scroll back
my name's not green so i can just say whatever
lmao
he's not even obligated to
@pearl pawn No, they're ignoring questions lol
@radiant pollen just asked if i could use a deprecated thing (sorry im still learning java)
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Registry.html#ENTITY_TYPE
@subtle blade are you now talking to me? please let's use this feature
@pearl pawn Yes, deprecated code still works. It's best not to use it in-case the Spigot team finally removes it but... if you're just making a custom plugin for your own server it doesn't matter much.
Yes lol. That one was for you
Choco he's getting an entitytype from a string from config.
So?
That's what that will do for you
whereas the enum has PIG_ZOMBIE and other shit




He's a nobody
