Giter Site home page Giter Site logo

essentials's Introduction

Essentials

GitHub all releases GitHub release (latest by date)
Add more commands to the server.
Requires Java 17 or higher!

This plugin was created because the creators were very angry with too many Griefers in Mindustry 4.0 Alpha version.
To create this plugin, I'm spent all night studying a programming language I hadn't looked at in my entire life. lol

Basically, this plugin focuses on finding cheats and griefers, but it adds additional features to make it useful on other servers as well.

Installation

Put this plugin in the <server folder location>/config/mods folder.

Client commands

Command Parameter Description
vote <kick/map/gg/skip/back/random> [player/amount/world_name] [reason] Start voting
broadcast <text...> Broadcast message to all servers
changemap <name> [gamemode] Change the world or gamemode immediately.
changename <new_name> [player] Change player name.
changepw <new_password> <password_repeat> Change account password.
chat <on/off> Mute all players without admins.
chars <text...> Make pixel texts
color Enable color nickname
discord Authenticate your Discord account to the server.
dps Create damage per seconds meter block
effect <level> [color] Set the effect and color for each level.
exp <set/hide/add/remove> [values/player] [player] Edit account EXP values
fillitems <team> Fill the core with items.
freeze <player> Stop player unit movement
gg [team] Force gameover
god [name] Set max player health
help [page] Show command lists
hub <set/zone/block/count/total/remove/reset> [ip] [parameters...] Create a server to server point.
hud <health> Enable unit information.
info [player] Show your information
js [code...] Execute JavaScript codes
kickall All users except yourself and the administrator will be kicked
kill [player] Kill player.
killall [team] Kill all enemy units
killunit <name> [amount] [team] Destroys specific units only.
lang <language_tag> Set the language for your account.
log Enable block log
login <id> <password> Access your account
maps [page] Show server maps
me <text...> broadcast * message
meme <type> Enjoy meme features!
motd Show server motd.
mute <player> Mute player
pause Pause server
players [page] Show players list
pm <player> [message...] Send private messgae
ranking <time/exp/attack/place/break/pvp> [page] Show players ranking
reg <id> <password> <password_repeat> Register account
report <player> <reason...> Report player
rollback <player> Undo all actions taken by the player.
search [value] Search player data
setitem <item> <amount> [team] Set team core item amount
setperm <player> <group> Set the player's permission group.
skip Start n wave immediately.
spawn <unit/block> <name> [amount/rotate] Spawns units at the player's location.
status Show server status
team <team_name> [name] Change team
tempban <player> <time> [reason] Ban the player for a certain period of time.
time Show server time
tp <player> Teleport to other players
tpp [player] Lock on camera the target player.
track Displays the mouse positions of players.
unban <uuid> Unban player
unmute <player> Unmute player
url <command> Opens a URL contained in a specific command.
weather <rain/snow/sandstorm/sporestorm> <seconds> Adds a weather effect to the map.

Server commands

Command Parameter Description
debug [bool] Show plugin internal informations
gen Generate README.md texts
reload Reload permission and config files.
setperm <player> <group> Set the player's permission group.
sync Match ban list with all connected servers.
tempban <player> <time> [reason] Ban the player for a certain period of time.

README.md Generated time: 2023-04-08 17:24:52

Contribute guide

File description

  • Main - Execute various settings and services to start the plugin.
  • Bundle - It's used to add various languages to the plugin.
  • Commands - Add server/client commands.
  • Config - Loads or saves settings used by the plugin.
  • DB - Save and load using SQLite to store player data.
  • Event - It works when an event occurs within the game.
  • FileWatchService - A service that monitors permissions and config files so that they are applied in real time when you modify them.
  • Permission - Read the permission file and check the permissions between players.
  • PluginData - Save and load using SQLite to store plugin data.
  • Trigger - Save and load player data, start ban sharing server/client, added feature triggers.

License

Free License

You can copy and modify my source code and claim it as your own!
Because if you want to implement a specific features, the source code will be the same after all lol

essentials's People

Contributors

astro36 avatar j-vds avatar jabster28 avatar kieaer avatar mayli avatar mlokogrgel avatar pribess avatar prosta4okua avatar remint32 avatar skykatik avatar way-zer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

essentials's Issues

Game Skipping mod

I have removed all config files except the db. removed the entire server and settings backups.
Still failing to load the new plugin.
mindustry1
mindustry2
mindustry3
mindustry4

Build error (testPlayerDB.java:25: error: incompatible types: int cannot be converted to String)

Build log:

# sh gradlew build
Downloading https://services.gradle.org/distributions/gradle-5.5-all.zip
.................................................................................................................................

Welcome to Gradle 5.5!

Here are the highlights of this release:
 - Kickstart Gradle plugin development with gradle init
 - Distribute organization-wide Gradle properties in custom Gradle distributions
 - Transform dependency artifacts on resolution

For more details see https://docs.gradle.org/5.5/release-notes.html

Starting a Gradle Daemon, 2 stopped Daemons could not be reused, use --status for details
> Task :compileJava UP-TO-DATE
> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
> Task :jar UP-TO-DATE
> Task :assemble UP-TO-DATE

> Task :compileTestJava FAILED
/tmp/Essentials/src/test/java/testPlayerDB.java:25: error: incompatible types: int cannot be converted to String
                a,
                ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileTestJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 46s
4 actionable tasks: 1 executed, 3 up-to-date

Build log with --debug: https://gist.github.com/TilCreator/d223146aed4b8b51127ed48c512dc47b

System info:

  • OS: Arch Linux (with 4.15.18-25-pve kernel)
  • # java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13)
OpenJDK 64-Bit Server VM (build 10.0.2+13, mixed mode)

Also mindustry-server is building successfully

Sever error (Message block)

When I put the message block, the server crashes, but not always. That is, if I put or break a message block, the server may crash, or it may not crash

Here is screenshot from console:
image

Server:

  • OS: Ubuntu

Server b100 crash when under-level player tries to build hi-exp building

> java.lang.NumberFormatException: For input string: "null"
    at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.base/java.lang.Integer.parseInt(Integer.java:652)
    at java.base/java.lang.Integer.parseInt(Integer.java:770)
    at essentials.core.EPG.lambda$main$0(EPG.java:32)
    at io.anuke.arc.Events.lambda$fire$2(Events.java:26)
    at io.anuke.arc.collection.Array.each(Array.java:171)
    at io.anuke.arc.Events.fire(Events.java:26)
    at io.anuke.arc.Events.fire(Events.java:21)
    at io.anuke.mindustry.entities.traits.BuilderTrait.lambda$updateBuilding$1(BuilderTrait.java:79)
    at io.anuke.arc.backends.headless.HeadlessApplication.executeRunnables(HeadlessApplication.java:126)
    at io.anuke.arc.backends.headless.HeadlessApplication.mainLoop(HeadlessApplication.java:95)
    at io.anuke.arc.backends.headless.HeadlessApplication$1.run(HeadlessApplication.java:64)
[12-11-2019 \| 08:47:57] [INFO] Sending crash report.
[12-11-2019 \| 08:47:57] [INFO] Crash sent successfully.

Can't load player data information

Exception in thread "LunarstarPony Player Join thread" java.lang.NullPointerException
at essentials.feature.Permission.isAdmin(Permission.java:62)
at essentials.core.player.PlayerCore.load(PlayerCore.java:44)
at essentials.internal.Event.lambda$new$9(Event.java:272)
at java.base/java.lang.Thread.run(Thread.java:834)
java.lang.RuntimeException: Failed to to read remote method 'sendChatMessage'!
at mindustry.gen.RemoteReadServer.readPacket(RemoteReadServer.java:119)
at mindustry.core.NetServer.lambda$new$5(NetServer.java:251)
at mindustry.net.Net.handleServerReceived(Net.java:266)
at mindustry.net.ArcNetProvider$2.lambda$received$2(ArcNetProvider.java:115)
at arc.backend.headless.HeadlessApplication.executeRunnables(HeadlessApplication.java:120)
at arc.backend.headless.HeadlessApplication.mainLoop(HeadlessApplication.java:89)
at arc.backend.headless.HeadlessApplication$1.run(HeadlessApplication.java:63)
Caused by: java.lang.NullPointerException
at essentials.internal.Event.lambda$new$13(Event.java:358)
at arc.Events.lambda$fire$2(Events.java:26)
at arc.struct.Array.each(Array.java:181)
at arc.Events.fire(Events.java:26)
at arc.Events.fire(Events.java:21)
at mindustry.core.NetClient.sendChatMessage(NetClient.java:166)
at mindustry.gen.RemoteReadServer.readPacket(RemoteReadServer.java:117)
... 6 more

Error when trying to load Essentials 9.0 Beta

I have a mindustry server version 104.6 running on OpenJDK 13.0.2,
I'm running on Manjaro Linux kernel 5.4.30-1-MANJARO
I've downloaded the Essentials.jar file for 9.0 Beta 1 and I have got this error:

[04-07-2020 | 17:40:42] [E] Failed to load mod file config/mods/Essentials.jar. Skipping. [04-07-2020 | 17:40:42] [E] java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481) at mindustry.mod.Mods.loadMod(Mods.java:650) at mindustry.mod.Mods.load(Mods.java:247) at mindustry.Vars.init(Vars.java:275) at mindustry.server.ServerLauncher.init(ServerLauncher.java:58) at arc.backend.headless.HeadlessApplication.mainLoop(HeadlessApplication.java:75) at arc.backend.headless.HeadlessApplication$1.run(HeadlessApplication.java:63) Caused by: java.lang.NoSuchMethodError: 'void arc.files.Fi.mkdirs()' at essentials.utils.Config.extract(Config.java:579) at essentials.utils.Config.main(Config.java:39) at essentials.Main.<init>(Main.java:127) ... 11 more

I also tried Essentials 8.1.0 and I have got this error:

[04-07-2020 | 17:48:59] [E] Failed to load mod file config/mods/Essentials.jar. Skipping. [04-07-2020 | 17:48:59] [E] java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481) at mindustry.mod.Mods.loadMod(Mods.java:650) at mindustry.mod.Mods.load(Mods.java:247) at mindustry.Vars.init(Vars.java:275) at mindustry.server.ServerLauncher.init(ServerLauncher.java:58) at arc.backend.headless.HeadlessApplication.mainLoop(HeadlessApplication.java:75) at arc.backend.headless.HeadlessApplication$1.run(HeadlessApplication.java:63) Caused by: java.lang.NoSuchMethodError: 'void arc.files.Fi.mkdirs()' at essentials.utils.Config.validfile(Config.java:465) at essentials.utils.Config.main(Config.java:39) at essentials.Main.<init>(Main.java:93) ... 11 more

Is there any way to fix this?

cannot load the essentials 11

Describe the bug
A clear and concise description of what the bug is.
cannot load the plugin
To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.
fix the bug
Screenshots
If applicable, add screenshots to help explain your problem.
image
image

Server (please complete the following information):

  • OS: Windows 7

Additional context
Add any other context about the problem here.

Add also output coordinates of actions/blocks in anti-grief system messages

Ex.:

[dd.mm.yyyy | hh:mm:ss] [Essentials] <User.name> start building <block.name> at <x, y>
[dd.mm.yyyy | hh:mm:ss] [Essentials] <User.name> has finished building <block.name> at <x, y>
[dd.mm.yyyy | hh:mm:ss] [Essentials] <User.name> change configuration of <block.name> from <meta1> to <meta2> at <x, y>

Crashes when use /event

This is a very good command how ever, server crashes when someone uses /event
(İ use latest version)

Switching from sqlite to SQL

I tried taking on a sql db rather than a local sqlite file. i had to find a program to convert sqlite to sql as the the mod did not create tables.

After i converted sqlite to sql and uploaded the tables.
starting the script gave this internal error

C:\Users\Skate\Desktop\game-server-stuff\mindustry-server>java -jar server.jar
[01-12-2020 | 11:50:00] [I] [EssentialConfig] Config file loaded!
[01-12-2020 | 11:50:00] [I] [EssentialPlayer] Database type: MariaDB/MySQL/PostgreSQL
[01-12-2020 | 11:50:00] [E] Internal error! - (conn=2320882) BLOB/TEXT column 'connserver' can't have a default value
[01-12-2020 | 11:50:01] [I] 1 mods loaded.
[01-12-2020 | 11:50:02] [I] Server loaded. Type 'help' for help.
[01-12-2020 | 11:50:02] [I] [EssentialClient] Checking plugin update...
[01-12-2020 | 11:50:02] [I] [EssentialClient] Current version is up to date.

image
image

Can't add self as admin

Hello I am trying to configure this plugin but there are special characters in my name the show up as ?. I am also trying to use my id also to no avail. My steam name uses the alt code for TM but i cant add myself as admin. I was trying to open the player db but the db is locked.

Console being spammed

My logging option in config is disabled, but my console keeps being spammed with [Essentials]break: router and stuff

SQL errors

With the latest version, it complains about the player table not existing.

org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: players)
at org.sqlite.core.DB.newSQLException(DB.java:941)
at org.sqlite.core.DB.newSQLException(DB.java:953)
at org.sqlite.core.DB.throwex(DB.java:918)
at org.sqlite.core.NativeDB.prepare_utf8(Native Method)
at org.sqlite.core.NativeDB.prepare(NativeDB.java:134)
at org.sqlite.core.DB.prepare(DB.java:257)
at org.sqlite.jdbc3.JDBC3Statement.executeQuery(JDBC3Statement.java:73)
at essentials.EssentialPlayer.getData(EssentialPlayer.java:181)
at essentials.EssentialLog.lambda$main$5(EssentialLog.java:112)
at io.anuke.arc.Events.lambda$fire$2(Events.java:26)
at io.anuke.arc.collection.Array.each(Array.java:174)
at io.anuke.arc.Events.fire(Events.java:26)
at io.anuke.arc.Events.fire(Events.java:21)
at io.anuke.mindustry.core.NetServer.connectConfirm(NetServer.java:551)
at io.anuke.mindustry.gen.RemoteReadServer.readPacket(RemoteReadServer.java:13)
at io.anuke.mindustry.core.NetServer.lambda$new$3(NetServer.java:197)
at io.anuke.mindustry.net.Net.handleServerReceived(Net.java:265)
at io.anuke.mindustry.net.ArcNetImpl$2.lambda$received$2(ArcNetImpl.java:115)
at io.anuke.arc.backends.headless.HeadlessApplication.executeRunnables(HeadlessApplication.java:126)
at io.anuke.arc.backends.headless.HeadlessApplication.mainLoop(HeadlessApplication.java:95)
at io.anuke.arc.backends.headless.HeadlessApplication$1.run(HeadlessApplication.java:64)

crash: java.lang.NoClassDefFoundError

$ jre1.8.0_221/bin/java -jar server.jar
java.lang.NoClassDefFoundError: io/anuke/mindustry/game/EventType$PlayerJoin
        at essential.Essentials.<init>(Essentials.java:28)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at java.lang.Class.newInstance(Class.java:442)
        at io.anuke.mindustry.plugin.Plugins.loadPlugin(Plugins.java:55)
        at io.anuke.mindustry.plugin.Plugins.load(Plugins.java:22)
        at io.anuke.mindustry.server.ServerControl.<init>(ServerControl.java:114)
        at io.anuke.mindustry.server.MindustryServer.init(MindustryServer.java:29)
        at io.anuke.arc.backends.headless.HeadlessApplication.mainLoop(HeadlessApplication.java:76)
        at io.anuke.arc.backends.headless.HeadlessApplication$1.run(HeadlessApplication.java:64)
Caused by: java.lang.ClassNotFoundException: io.anuke.mindustry.game.EventType$PlayerJoin
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 12 more

Help please

how to install this, i just cant get it, help,please! Wheres the build jar?

Anti uuid

Prevents changing uuid to bypass uuid bans

File not found, skipping mod.

fresh server and fresh mod download produced this issue.

C:\Users\Skate\Desktop\game server stuff\mindustry-server>java -jar server.jar
[Essential] The plugin file or folder path is invalid. Please check your server path!
Failed to load mod file config/mods/Essentials.jar. Skipping.
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at io.anuke.mindustry.mod.Mods.loadMod(Mods.java:529)
        at io.anuke.mindustry.mod.Mods.load(Mods.java:180)
        at io.anuke.mindustry.Vars.init(Vars.java:267)
        at io.anuke.mindustry.server.MindustryServer.init(MindustryServer.java:35)
        at io.anuke.arc.backends.headless.HeadlessApplication.mainLoop(HeadlessApplication.java:76)
        at io.anuke.arc.backends.headless.HeadlessApplication$1.run(HeadlessApplication.java:64)
Caused by: io.anuke.arc.util.ArcRuntimeException: File not found: config\mods\Essentials\data\data.json (Local)
        at io.anuke.arc.files.FileHandle.read(FileHandle.java:191)
        at io.anuke.arc.files.FileHandle.readString(FileHandle.java:273)
        at io.anuke.arc.files.FileHandle.readString(FileHandle.java:258)
        at essentials.utils.Config.main(Config.java:344)
        at essentials.Main.<init>(Main.java:84)
        ... 10 more

[12-10-2019 | 13:11:57] [INFO] Server loaded. Type 'help' for help.
>

Server b101.1 crash on startup


> mindustry@v106011:~/mainservervanilla$ java -jar server-release-b101.1.jar
[12-19-2019 \| 00:08:27] [E] Failed to load mod file config/mods/Essentials.jar. Skipping.
[12-19-2019 \| 00:08:27] [E] java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
    at io.anuke.mindustry.mod.Mods.loadMod(Mods.java:632)
    at io.anuke.mindustry.mod.Mods.load(Mods.java:233)
    at io.anuke.mindustry.Vars.init(Vars.java:274)
    at io.anuke.mindustry.server.ServerLauncher.init(ServerLauncher.java:58)
    at io.anuke.arc.backends.headless.HeadlessApplication.mainLoop(HeadlessApplication.java:75)
    at io.anuke.arc.backends.headless.HeadlessApplication$1.run(HeadlessApplication.java:63)
Caused by: java.lang.NoSuchMethodError: 'io.anuke.arc.files.FileHandle io.anuke.arc.Settings.getDataDirectory()'
    at essentials.utils.Config.(Config.java:33)
    at essentials.Main.(Main.java:74)
    ... 10 more
[12-19-2019 \| 00:08:28] [I] Server loaded. Type 'help' for help.
>

Java Recognise Error

Describe the bug
idk, it says this:
java.lang.UnsupportedClassVersionError: essentials/Main has been compiled by a more recent version of the Java Runtime (class file version 58.0), this version of the Java Runtime only recognizes class file versions up to 52.0

To Reproduce
Steps to reproduce the behavior:
just open a server in 112.1 with latest version

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Server (please complete the following information):

  • Windows

Additional context
Add any other context about the problem here.

Server b100 crash

io.anuke.arc.util.ArcRuntimeException: File not found: config/mods/Essentials/BlockReqExp.txt (Local)
    at io.anuke.arc.files.FileHandle.read(FileHandle.java:191)
    at io.anuke.arc.files.FileHandle.readString(FileHandle.java:273)
    at io.anuke.arc.files.FileHandle.readString(FileHandle.java:258)
    at essentials.core.EPG.lambda$main$0(EPG.java:29)
    at io.anuke.arc.Events.lambda$fire$2(Events.java:26)
    at io.anuke.arc.collection.Array.each(Array.java:171)
    at io.anuke.arc.Events.fire(Events.java:26)
    at io.anuke.arc.Events.fire(Events.java:21)
    at io.anuke.mindustry.entities.traits.BuilderTrait.lambda$updateBuilding$0(BuilderTrait.java:80)
    at io.anuke.arc.backends.headless.HeadlessApplication.executeRunnables(HeadlessApplication.java:126)
    at io.anuke.arc.backends.headless.HeadlessApplication.mainLoop(HeadlessApplication.java:95)
    at io.anuke.arc.backends.headless.HeadlessApplication$1.run(HeadlessApplication.java:64)
[12-19-2019 | 00:41:32] [I] Sending crash report.
[12-19-2019 | 00:41:32] [I] Crash sent successfully.

Server crash with /votekick

Describe the bug
Everytime a votekick is completed the server crash.

To Reproduce
As said just votekick a player and wait it is completed.

Screenshots
Unfortunately don't have.

Server
Server hosted in linux. Version: b119

[IMPORTANT] Make config 'only console output' for antigrief/blockdetect/alertdeposit features

# Turn this feature on to activate anti-grief against block place/break of each player.
# blockdetect is a function that notifies players when a any block config is changed.
# alertdeposit is a feature that notifies you when an item is picked up and put into another block.
# client-output outputs logs in addition to output to the console also in the game itself, if true
antigrief: true
blockdetect: true
alertdeposit: true
client-output: false

Bug list

  • When the player joins, the server stops briefly by jsoup redirect.
  • Still not counting much information.

Failed to load

Running CentOS 7
Java tried both 8 and 11

[05-09-2020 | 12:13:58] [I] Config file updated!
[05-09-2020 | 12:13:58] [I] Plugin language:
[05-09-2020 | 12:13:58] [E] Failed to load mod file config/mods/Essentials.jar. Skipping.
[05-09-2020 | 12:13:58] [E] java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at mindustry.mod.Mods.loadMod(Mods.java:650)
at mindustry.mod.Mods.load(Mods.java:247)
at mindustry.Vars.init(Vars.java:275)
at mindustry.server.ServerLauncher.init(ServerLauncher.java:58)
at arc.backend.headless.HeadlessApplication.mainLoop(HeadlessApplication.java:75)
at arc.backend.headless.HeadlessApplication$1.run(HeadlessApplication.java:63)
Caused by: java.lang.NoClassDefFoundError: org/h2/upgrade/DbUpgrade
at org.h2.Driver.connect(Driver.java:65)
at essentials.external.DriverLoader.connect(DriverLoader.java:152)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:251)
at essentials.core.player.Database.connect(Database.java:80)
at essentials.Main.(Main.java:157)
... 10 more
Caused by: java.lang.ClassNotFoundException: org.h2.upgrade.DbUpgrade
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 16 more

6.0 v1 not loading

C:\Users\Skate\Desktop\New folder\mindustry-server>java -jar server.jar
Failed to load mod file config/mods/Essentials.jar. Skipping.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at io.anuke.mindustry.mod.Mods.loadMod(Mods.java:520)
at io.anuke.mindustry.mod.Mods.load(Mods.java:180)
at io.anuke.mindustry.Vars.init(Vars.java:267)
at io.anuke.mindustry.server.MindustryServer.init(MindustryServer.java:35)
at io.anuke.arc.backends.headless.HeadlessApplication.mainLoop(HeadlessApplication.java:76)
at io.anuke.arc.backends.headless.HeadlessApplication$1.run(HeadlessApplication.java:64)
Caused by: io.anuke.arc.util.ArcRuntimeException: File not found: config\mods\Essentials\data\data.json (Local)
at io.anuke.arc.files.FileHandle.read(FileHandle.java:191)
at io.anuke.arc.files.FileHandle.readString(FileHandle.java:273)
at io.anuke.arc.files.FileHandle.readString(FileHandle.java:258)
at essentials.utils.Config.main(Config.java:289)
at essentials.Main.(Main.java:77)
... 10 more

Game crashes trying to login from discord signup

the discord bot takes the password and clears the message. I joined the game with a bunch of alt codes on my name tried to login then the game crashed with a NullPointerException. I was just using sqlite in a linux server setting.

console copy&paste

skater0guy@instance-2:~/games/mindustry$ ./run_server.sh
[02-02-2020 | 15:42:54] [I] [EssentialConfig] Plugin language: English
[02-02-2020 | 15:42:54] [I] [EssentialConfig] Config file loaded!
[02-02-2020 | 15:42:54] [I] [EssentialPlayer] Database type: SQLite
[02-02-2020 | 15:42:55] [I] 1 mods loaded.
[02-02-2020 | 15:42:55] [I] Server loaded. Type 'help' for help.
[02-02-2020 | 15:42:55] [I] [EssentialClient] Checking plugin update...
[02-02-2020 | 15:42:55] [I] [EssentialClient] Current version is up to date.
[02-02-2020 | 15:42:57] [I] [Essential] Discord service enabled!
host
[02-02-2020 | 15:43:40] [I] Randomized next map to be Wasteland.
[02-02-2020 | 15:43:40] [I] Loading map...
[02-02-2020 | 15:43:41] [I] Map loaded.
[02-02-2020 | 15:43:41] [I] Opened a server on port 6567.
[02-02-2020 | 15:44:18] [I] [0MXTgOo/AAA=] [LEVO]™ƒµžž has connected.
[02-02-2020 | 15:48:16] [I] [EssentialPlayer] TMFuzz Player database created!
[02-02-2020 | 15:49:15] [I] [0MXTgOo/AAA=] [LEVO]™ƒµžž has disconnected. (closed)
[02-02-2020 | 15:49:20] [I] [0MXTgOo/AAA=] [LEVO]™ƒµžž has connected.
[02-02-2020 | 15:49:34] [I] <[LEVO]™ƒµžž: /login buzz Buzz123!>
[02-02-2020 | 15:49:34] [I] [0MXTgOo/AAA=] null has disconnected. (closed)
[02-02-2020 | 15:49:54] [E] Internal error! - null
[02-02-2020 | 15:50:01] [I] Game over! Reached wave 3 with 0 players online on map Wasteland.
[02-02-2020 | 15:50:01] [I] Selected next map to be Islands.
[02-02-2020 | 15:50:24] [E] Internal error! - null
[02-02-2020 | 15:50:54] [E] Internal error! - null
[02-02-2020 | 15:51:24] [E] Internal error! - null
[02-02-2020 | 15:51:54] [E] Internal error! - null
[02-02-2020 | 15:52:24] [E] Internal error! - null
[02-02-2020 | 15:52:54] [E] Internal error! - null
[02-02-2020 | 15:53:24] [E] Internal error! - null
[02-02-2020 | 15:53:54] [E] Internal error! - null
[02-02-2020 | 15:54:24] [E] Internal error! - null
[02-02-2020 | 15:54:54] [E] Internal error! - null
[02-02-2020 | 15:55:24] [E] Internal error! - null
[02-02-2020 | 15:55:54] [E] Internal error! - null
[02-02-2020 | 15:56:09] [I] Game over! Reached wave 2 with 0 players online on map Islands.

Game Crash log

java.lang.NullPointerException
at arc.graphics.g2d.GlyphLayout.setText(GlyphLayout.java:43)
at mindustry.world.Block.drawPlaceText(Block.java:278)
at mindustry.world.blocks.RespawnBlock.drawRespawn(RespawnBlock.java:70)
at mindustry.world.blocks.storage.CoreBlock.drawLayer(CoreBlock.java:190)
at mindustry.graphics.BlockRenderer.drawBlocks(BlockRenderer.java:285)
at mindustry.core.Renderer.draw(Renderer.java:250)
at mindustry.core.Renderer.update(Renderer.java:141)
at arc.ApplicationCore.update(ApplicationCore.java:36)
at mindustry.ClientLauncher.update(ClientLauncher.java:136)
at arc.backend.sdl.SdlApplication.listen(SdlApplication.java:158)
at arc.backend.sdl.SdlApplication.loop(SdlApplication.java:146)
at arc.backend.sdl.SdlApplication.(SdlApplication.java:52)
at mindustry.desktop.DesktopLauncher.main(DesktopLauncher.java:46)

/spawn limit

Add limit to amount of mobs they can be spawned to prevent crashing of server. Add this option to config.yml

Server crash.

To Reproduce
Everytime a player join and place a block the server crash.

Screenshots
Console error: https://prnt.sc/vtohj0

Server
Server hosted in linux. Version: v120.

Feature: Simple /help

Disable some command in config (Don't register it)
Or
Add a more simple help for player based on permission or role

NullPointerExceptions

java.lang.RuntimeException: Failed to to read remote method 'sendChatMessage'!
at mindustry.gen.RemoteReadServer.readPacket(RemoteReadServer.java:119)
at mindustry.core.NetServer.lambda$new$5(NetServer.java:232)
at mindustry.net.Net.handleServerReceived(Net.java:266)
at mindustry.net.ArcNetProvider$2.lambda$received$2(ArcNetProvider.java:115)
at arc.backend.headless.HeadlessApplication.executeRunnables(HeadlessApplication.java:120)
at arc.backend.headless.HeadlessApplication.mainLoop(HeadlessApplication.java:89)
at arc.backend.headless.HeadlessApplication$1.run(HeadlessApplication.java:63)
Caused by: java.lang.NullPointerException
at essentials.core.Translate.main(Translate.java:25)
at essentials.Main.lambda$new$13(Main.java:517)
at arc.Events.lambda$fire$2(Events.java:26)
at arc.struct.Array.each(Array.java:171)
at arc.Events.fire(Events.java:26)
at arc.Events.fire(Events.java:21)
at mindustry.core.NetClient.sendChatMessage(NetClient.java:201)
at mindustry.gen.RemoteReadServer.readPacket(RemoteReadServer.java:117)
... 6 more

/event crashes the server or writes an long error.

I really want to use /event beacuse it makes the server host 2 servers at the same time but it does not work.
it writes object not found, plugin error ...............
Can you help and tell me what i can do?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.