Problems With Answers - All sorts of questions

Apr 2, 2016
Problems With Answers - All sorts of questions
  • If you have any questions, that have to do with this wiki or want to make a complaint or something else? Click on this text!
    Old Page:
    Index:
    Problems:
    If you have a lot of plugins installed, your TPS will most likely be below 20.0 TPS.
    Most plugins are well-configured and written. If the plugins on the server are poorly written or aren't configured correctly, you have the possibility to suffer from performance issues.
    To see some issues you might be struggling with, try using Timings on your server.
    This will take around 5-20 minutes. How to do Timings with Spigot please visit this link.

    On the same page at the bottom there is a bit about identifying lag:
    Not my original writing:
    Identifying lag

    The Pct Total column is a good indicator of overall server tick rate (TPS). If a certain event takes up a large amount of time to process, it could mean that it is responsible for a sluggish server because a good amount of the game loop is spent on that one event.

    The Pct Tick column is useful for identifying server lag spikes. For example, if your players complain about experiencing a large lag spike only during logon, it would be wise to examine PlayerJoinEvent timings. Seeing a large number in the Pct Tick column and a low number in the Count column could indicate that the plugin is spending a lot of a single tick processing the event, and thus causing a lag spike. Coupled with a average, this would mean that the plugin is an almost definitive cause of steady, repeated lag spikes.

    Examining a timings report is therefore useful to find the root cause of lag on your server. If you see a specific plugin is taking up a lot of time processing a certain event, it is a good indication that the plugin is causing your server lag. Of course, it would not be wise to immediately hassle the developer, as many other factors come into play when dealing with lag issues, such as server hardware, latency when using an external database, etc.
    This occurs when a plugin tries to register a team that is already registered and is usually a bug inside the plugin. The error happens when a plugin calls the "registerNewTeam" without checking if the team already exists.

    This is not a permanent fix:

    1. Stop the server
    2. Go to the (MAINWORLD)/data
    3. Remove scoreboard.dat
    4. Start server
    5. ???
    6. Success!
    On non-UUID servers (1.7 age) skins were matched using the player name. However now there is a difference between offline (uuids) and online (uuids) meaning that when your server is offline they won't match with the skins of the online accounts even when the name is the same.

    There are plugins available to force send a skin to all connected clients.
    Errors:
    When you see the error:
    [​IMG]
    Your startup file will sort of look like this:
    Code (Text):
    java -jar XX.jar
    pause
    The file XX.jar couldn't be found, keep in mind that XX can be different for you.
    The .bat file searches in this folder:
    [​IMG]
    As you can see there is no XX.jar, if we change XX.jar to spigot_server.jar (or what ever jar you are using, can be spigot.jar, craftbukkit.jar, spigot_server.jar spigot.1.8.8.jar or something along those lines.)
    If your command prompt instantly closes it will look like this:
    [​IMG]
    Your start.bat will look something like this:
    Code (Text):
    java -jar XX.jar
    Change it into:
    Code (Text):
    java -jar XX.jar
    pause
    In order to let it wait until your press a key inside of the command prompt until it closes, so you can 'debug' it.
    WorldEdit is an easy-to-use in-game world editor for Minecraft, supporting both single player and multiplayer.
    but the problem is, it doesn't have self-set limits, when you create a huge/pretty big thing, doesn't matter if it is
    a //set, or a //replacenear, //hsphere, //cyl or something like that, when it's really big, the server has to calulate the blocks that it's going to place, sometimes, your server will freeze for a moment and continue after that, in some cases it will just crash, you'll get a huge stacktrace in your console and it is offline.

    To stop your server from crashing you can do a few things:
    When you make a smaller selection and then set it to //set dirt for example,
    it will most likely not crash as often, sometimes this isn't possible, because for example: when you are creating a huge hsphere, you can't make it smaller and make it a bit bigger, if you can't do the step above, please go to the spoiler 'The Piece-By-Piece Way'.
    It may sound weird, when you use WorldEdit and you are creating something huge your server sometimes crashes, and when you start it up again, it has some of the thing you were creating finished,
    the thing you can do,
    1. Write down the co-ords where you did you first command (the WorldEdit command ofcourse)
    2. Do your WorldEdit command
    3. The server will now crash
    4. Startup your server again
    5. Re-do the command you were doing in Step 2
    6. Go back to step 3
    7. Until it's finished
    When doing this, any rollback plugin will NOT track it!
    YOU HAVE BEEN WARNED!
    After those 2 methods you also have 'AsyncWorldEdit';
    It's a plugin made by @SB_prime
    As of writing this it has ~50k downloads,
    and it's well trusted:
    [​IMG]
    There is a free and a premium version,
    the free one is slower then the premium version, and the premium version has some other cool things, but that to the side, we'll be using the free version right now.

    1. Make sure you have the latest version of WorldEdit (if not install it)
    2. Go to the page of AsyncWorldEdit
    3. Click on 'Download Now' 'Via external site'.
    4. It'll take you to this site
    5. When on this site click on the .jar's 'AsyncWorldEdit.jar' & 'AsyncWorldEditInjector.jar' [​IMG]
    6. Install those 2 files into your server, when you restarted your server you should see 3 plugins in it. (not reloaded)
    7. When you now make a WorldEdit thing you'll see it will go much slower and with almost 0% lag. (caused by WorldEdit)
    8. You will also get messages telling you certain things, look in the config to change speeds to what you need.
    I am not responsible to any harm done to your server or anything I don't own.
    Even if you got WorldGuard & WorldEdit installed and set a region, and changed some flags to allow everything, worldguard can't override the server.properties.

    So if you don't see a deny message from WorldGuard and no other conflicting plugins.
    At the moment of writing (12/24/2015) the default server.properties looks like this:
    Code (Text):
    #Minecraft server properties
    #Thu Dec 24 10:36:45 CET 2015
    generator-settings=
    op-permission-level=4
    allow-nether=true
    resource-pack-hash=
    level-name=world
    allow-flight=false
    announce-player-achievements=true
    server-port=25565
    max-world-size=29999984
    level-type=DEFAULT
    level-seed=
    force-gamemode=false
    server-ip=
    network-compression-threshold=256
    max-build-height=256
    spawn-npcs=true
    white-list=false
    spawn-animals=true
    hardcore=false
    snooper-enabled=true
    online-mode=true
    resource-pack=
    pvp=true
    difficulty=1
    enable-command-block=false
    gamemode=0
    player-idle-timeout=0
    max-players=20
    spawn-monsters=true
    generate-structures=true
    view-distance=10
    motd=A Minecraft Server
     
    If you wish to disable spawn protection so people can build:
    Add this line:
    Code (Text):
    spawn-protection=0
    So your final config will look like this:
    Code (Text):
    #Minecraft server properties
    #Thu Dec 24 10:40:51 CET 2015
    generator-settings=
    op-permission-level=4
    resource-pack-hash=
    allow-nether=true
    level-name=world
    enable-query=false
    allow-flight=false
    announce-player-achievements=true
    server-port=25565
    max-world-size=29999984
    level-type=DEFAULT
    enable-rcon=false
    force-gamemode=false
    level-seed=
    server-ip=
    network-compression-threshold=256
    max-build-height=256
    spawn-npcs=true
    white-list=false
    spawn-animals=true
    snooper-enabled=true
    hardcore=false
    online-mode=true
    resource-pack=
    pvp=true
    difficulty=1
    enable-command-block=false
    player-idle-timeout=0
    gamemode=0
    max-players=20
    spawn-monsters=true
    view-distance=10
    generate-structures=true
    motd=A Minecraft Server
    spawn-protection=0
     
    How to:
    How to change the message issued to players that are denied an action.
    When you created a region you must do the following:
    Code (Text):
    /rg flag <region> deny-message <message>
    Example:
    Code (Text):
    /rg flag house deny-message &e&lThis area has been protected.
    [​IMG]
    [​IMG]
    • Setup GroupManager (install then add your perms "might be doable ingame"
    • Setup PermissionsEx ( install add perms "can be done ingame")
    For example: When you have a spawn you don't want players be able to PvP, so you installed WorldGuard;
    if you don't have WorldGuard install it please look at the spoiler 'Install WorldGuard'

    When your great spawn is done:
    [​IMG]
    Do //wand to get your WorldEdit wand (by default it's a wooden axe)
    [​IMG]
    Select (left mouse click) 1 of the 4 corners on your spawn (the top row)
    [​IMG]
    Now select (right mouse click) the lowest other corner (diagonally to the previous one):
    [​IMG]
    Now you can made a selection,
    Now you can do this:
    Code (Text):
    /region define Spawn
    Spawn can be replaced with anything, you must remember it though.
    [​IMG]
    Ok, great, your region has been made with WorldGuard, normal people also can't build/break stuff in here.
    Now, the thing you want to do is:
    Code (Text):
    /region flag Spawn pvp deny
    This will deny any player from PvP'ing in the spawn.
    To allow people to PvP in a region:
    Code (Text):
    /region flag Spawn pvp allow
    To let other plugins manage PvP do:
    Code (Text):
    /region flag Spawn pvp none
    To deny PvP over the whole world of your server do:
    Code (Text):
    /region flag _global_ pvp deny
    and you can put this after pvp: deny, allow, none
    • Setup Essentials(X) (slowly scroll down the list and enable what u want and google what u dont understand)
    • Setup PaperSpigot (same as build tools)
    Where is/are?:

    Explaining:
    VPS - Stands for Virtual Private Server. As the name suggestions, it's virtual. The server is ran off of a dedicated server (description below). There can be multiple VPSs on a single dedicated server. Depending on how much you're getting resource wise, depends on how many Minecraft server instances you can have running. VPSs don't usually come with the most resources ever, so hosting too many will just start too lag. You're all sharing the same resources. Chances are you'll be running Linux, so you'll need to know what you're doing to use it. You can get other operating system's like Windows, but may come at an extra cost and also reduce performance.

    The text here has been made by @nfell2009 in this post.
    Dedicated Server- Typically shortened to "dedi"; a dedicated server is a physical server. You're given digital access to the server. They're typically used for hosting multiple Minecraft server instances you're normally getting a lot more resources than what people offer for VPSs. Dedicated servers normally use Linux but again, can use others like Windows. Dedicated servers are more expensive than VPSs but if your server is growing, then it's worth it.

    Side note: You're reasonable for the digital security and well being of your VPS or dedicated server. The hosting company will not step in if you get hacked or if your box is slowing down. Also another side note; be careful with internet usage. And by this I mean sending and receiving. If you're sending too much data then your host may question what your doing. And if your receiving too much, i.e. DDoS attack, then your host may completely stop access to your server until the attacks stop. This is because DDoS attacks can slow down an entire network of servers.

    The text here has been made by @nfell2009 in this post.
    Minecraft Server Hosting - I assume you mean a company who hosts Minecraft servers. They typically use dedicated servers (either its own or rents/"resells" someone else's) and then create multiple Minecraft server instances on their machines which you rent off of them. See Shared Hosting for more information about what Minecraft Server Hosting companies do.

    The text here has been made by @nfell2009 in this post.
    Shared Hosting - Minecraft Server Hosting companies do this. Shared hosting is basically having multiple Minecraft server instances on a dedicated machine. Each instance is sharing the resources of the machine it is on. Unlike a VPS or dedicated server, you're not responsible for the security of the server, however you may be held liable for the well being if you upload too many files or upload files which they don't allow (i.e. pornography). Shared hosting is often regarded as a starting platform. Once your server has begun to grow to a signification size, you should leave shared hosting and look at a VPS or even a dedicated server.

    The text here has been made by @nfell2009 in this post.
    What is NMS?
    NMS means Net Minecraft Server, it's the Java package name for sensible classes.
    It controls everything in Vanilla Minecraft.
    They are mostly used by highly experienced developers, used for complex things.
    This also includes Custom Path Finding, NMS is something you can't do with the normal API.
    There are packets inside of NMS.
    The ping is the reaction time of your connection–how fast you get a response after you've sent out a request.
    A fast ping means a more responsive connection, especially in applications where timing is everything (like video games). Ping is measured in milliseconds (ms).

    You can view your ping to the internet on sites like Speedtest.net, keep in mind that that is to another server, usally dedicated to do the ping tests, you can also see your ping with a Minecraft server if you are hovering over the server you want to see,
    [​IMG]
    (not my original photo)
    Open up the Terminal app.
    Type in:
    Code (Text):
    ping <IP>
    For example:
    Code (Text):
    ping google.com
    Then press enter.
    Output:
    [​IMG]
    The time means your ping, anything below 140 is ok, if you have more then 300 you will notice a lot of delay and laggy scoreboards/particles etc.
    Open up a Terminal window.
    Type in:
    Code (Text):
    ping <IP>
    For example:
    Code (Text):
    ping google.com
    Then press enter.
    Output:
    [​IMG]
    The time means your ping, anything below 140 is ok, if you have more then 300 you will notice a lot of delay and laggy scoreboards/particles etc.
    In order to see your ping to any service open up command prompt, press the Windows key + R and type in cmd then press Ok,

    Type in:
    Code (Text):
    ping <IP>
    For example:
    Code (Text):
    ping pvp.rebootmc.com
    Then press enter.
    Output:
    [​IMG]
    The time means your ping, anything below 140 is ok, if you have more then 300 you will notice a lot of delay and laggy scoreboards/particles etc.

    I am not responsible to any harm done to your server or anything I don't own.
  • Loading...
  • Loading...