1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

An internal error occurred while attempting to perform this command.

Discussion in 'Other' started by Noblesuntzu, Dec 3, 2018.

  1. Noblesuntzu

    Noblesuntzu Active Member

    Feb 18, 2017
    Likes Received:
    Super sorry if this is the wrong place to post this but any time I type any Skript command I receive this error in game
    Code (Skript):
    1. [COLOR=#ff9999]An internal error has occurred while attempting to perform this command[/COLOR]
    And this in console

    Code (Skript):
    1. [18:04:51 INFO]: noblesuntzu issued server command: /sk reload all
    2. [18:04:51 ERROR]: null
    3. org.bukkit.command.CommandException: Unhandled exception executing command 'sk' in plugin Skript v2.2-dev33
    4.         at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
    5.         at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) ~[craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
    6.         at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:620) ~[craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
    7.         at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1106) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
    8.         at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:966) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
    9.         at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(SourceFile:37) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
    10.         at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(SourceFile:9) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
    11.         at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
    12.         at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_101]
    13.         at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_101]
    14.         at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
    15.         at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:673) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
    16.         at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:335) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
    17.         at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:629) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
    18.         at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:537) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
    19.         at java.lang.Thread.run(Unknown Source) [?:1.8.0_101]
    20. Caused by: java.lang.NoClassDefFoundError: Could not initialize class ch.njol.skript.SkriptConfig
    21.         at ch.njol.skript.Skript.reloadMainConfig(Skript.java:751) ~[?:?]
    22.         at ch.njol.skript.Skript.reload(Skript.java:733) ~[?:?]
    23.         at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:161) ~[?:?]
    24.         at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-18fbb24]
    25.         ... 15 more
    My applicable plugins are
    Skript 2.2 dev33
    WildSkript 1.8 (Dzikoysk)
    SkriptJSON 1.0.0 (none)
    TuSKe 1.8.2 (Tuke_Nuke)
    Skellet 1.8.9 (LimeGlass)
    SkStuff (TheBukor)
    SkRambled 1.9 (HeadShot)
    SharpSK 1.6.2 (Sharpjaws)

    If this is the wrong place to put this just let me know.
  2. ShaneBee

    Supporter + Addon Developer

    Sep 7, 2017
    Likes Received:
    Bensku's fork of Skript does not work properly on craftbukkit.
    You will need to use Spigot or Paper
  3. Noblesuntzu

    Noblesuntzu Active Member

    Feb 18, 2017
    Likes Received:
    I tried both Spigot 1.8.8 and PaperSpigot 1.8.8 and I still get the same error, except all the craftbukkit jars in the error are replaced with the spigot/paper jars.
  4. ShaneBee

    Supporter + Addon Developer

    Sep 7, 2017
    Likes Received:
    it almost appears you're missing your config
    if you go into your skript folder (/plugins/skript/) is there a file called config.sk?
  5. Noblesuntzu

    Noblesuntzu Active Member

    Feb 18, 2017
    Likes Received:
    Yes there is

    I'll include it but it's pretty standard the only things I've changed are the effect commands and the update settings.
    Code (Skript):
    1. #     __________________________________________________________
    2. #    / /                                                   / /\ \
    3. #    \_\___________________________________________________\_\/ /
    4. #        / /    _____    __            __                    / /
    5. #       / /    / ____\  / /           /_/          /\       / /
    6. #      / /    / /__    / /___  ___   __  ______ __/ /_     / /
    7. #     / /     \___ \  /   __/ / __\ / / / __  //_  __/    / /
    8. #    / /     ____/ / / /\ \  / /   / / / /_/ /  / /      / /
    9. #   / /     \_____/ /_/ /_/ /_/   /_/ / ____/  /_/      / /__
    10. #  / /    ========================== / / ==========    / / \ \
    11. # | |                               /_/               | |   | |
    12. #  \_\_________________________________________________\_\_/_/
    13. #
    14. # == Introduction ==
    15. # This file contains Skript's general options. To write scripts, create a new .sk file in the scripts folder or edit any existing one.
    16. #
    17. # Script files prefixed with a hyphen (-) will not be loaded, e.g. renaming 'plant with hoe.sk' to '-plant with hoe.sk' will disable the whole file.
    18. # This can e.g. be used to temporarily disable scripts and is also used for Skript's example scripts.
    19. # You can also use the command '/skript enable/disable <script>' to enable/disable a script which will automatically rename it.
    20. #
    21. # === !!! PLEASE NOTE !!! ===
    22. # This file, all scripts and other files ending in .sk are NOT .yml/YAML files, but very similar!
    23. # Please remember the following when editing files:
    24. # - To indent sections you can use spaces like in YAML, but tabs are also allowed. Just remember to stick to the one or the other for a section/trigger.
    25. # - '#' starts a comment like in YAML. If you don't want it to start a comment simply double it: '##' (You also have to double these in "quoted text")
    26. # - If you use special characters (§, äöü, éèàôç, ñ, etc.) you have to encode the file in UTF-8.
    27. #
    31. # ==== General Options ====
    33. language: english
    34. # Which language to use. Currently english and german are included in the download, but custom languages can be created as well.
    35. # Please note that not everything can be translated yet, i.e. parts of Skript will still be english if you use another language.
    36. # If you want to translate Skript to your language please read the readme.txt located in the /lang/ folder in the jar
    37. # (open the jar as zip or rename it to Skript.zip to access it)
    40. check for new version: true
    41. # Whether Skript should check for whether a new version of Skript is available when the server starts.
    42. # If this is set to true Skript will announce a new version to all players with the "skript.admin" permission.
    43. # If set to false you can still check for a new version with '/skript update check'.
    44. # Please note that Skript will not detect beta releases even if you are running one as they are not necessarily stable.
    46. update check interval: 12 hours
    47. # If 'check for new version' is enabled, this sets how often to check for a new update.
    48. # A first check will always be made when the server starts, after that checks will be made in intervals set by this option.
    49. # Set this to 0 to disable repeated checks, in which case only one check will be made when the server starts.
    50. # Please note that this option is currently the only means of making Skript check for an update more than once,
    51. # as '/skript update check' does only display the results of the last check if a check has been made before.
    53. automatically download new version: true
    54. # Whether Skript should automatically download & install the newest version if one is available.
    55. # I suggest to disable this feature if your server restarts automatically as you likely won't be informed
    56. # of any incompatibilities of your scripts and the newest version of Skript.
    57. # If you disable this you can still use '/skript update download' to make Skript download the newest version.
    58. # If you're concerned about changes use '/skript update changes' for a full list of changes since your current version.
    60. update to pre-releases: true
    61. # Indicates if Skript should update to pre-release builds, which might be unstable. This is enabled by default, if
    62. # your first Skript version in this server is pre-release.
    64. enable effect commands: true
    65. effect command token: !
    66. # If 'enable effect commands' is set to true, chat messages starting with the 'effect command token' will be interpreted as effects and executed.
    67. # The token can be longer than a single character, but it should not start with '/' as that starts a command.
    68. # A player needs the permission "skript.effectcommands" to use such commands,
    69. # which does not default to OPs since these commands can do severe damage to the world or crash the server (see below).
    70. # Some example commands which can be used if this setting is enabled:
    71. #    !heal player - heals the player (doesn't do anything if used from the console)
    72. #    !repair tool - repairs the currently held item
    73. #    !broadcast "<red>Please read the rules!" - if you want to get rid of the quotes you have to define a custom command
    74. #    !set time to 6:00 - sets the time in the current world
    75. # The command can also be abused, so only give the permission to trusted players, like owners & co-owners:
    76. #    !spawn 20 ender dragons - will destroy a large part of the world in a short time if no protection is present
    77. #    !create explosion of force 10000 - likely crashes the server or at least hangs it up for a long time
    78. #    !ban all players - as the effect implies
    80. allow ops to use effect commands: true
    81. # Whether server operators which do not have the permission "skript.effectcommands" should have access to effect commands.
    82. # This setting is mainly useful for servers that do not run any permissions plugin.
    85. player variable fix: true
    86. #Whether to enable the player variable fix if a player has rejoined and was reciding inside a variable.
    87. #Player objects inside a variable(list or normal) are not updated to the new player object
    88. #A server creates whenever a player rejoins.
    89. #Basicly the variable holds the old player object when a player has rejoined thus rendering the variable kinda broken.
    90. #This fix should work around that and whenever a invalid(old) player object is attempted to be get through a variable
    91. #It will check if the player is online and then get the valid(new) player object and update the variable object to that one.
    92. #By Mirre
    94. use player UUIDs in variable names: false
    95. # Whether to use a player's UUID instead of their name in variables, e.g. {home.%player%} will look like
    96. # {home.e5240337-a4a2-39dd-8ed9-e5ce729a8522} instead of {home.njol}.
    97. # Please note that if this setting is changed old variables WILL NOT be renamed automatically.
    100. date format: default
    101. # The date format to be used when dates should be displayed.
    102. # This can be 'default' to use Java's default date format for the system's language.
    103. # The format is that of Java's SimpleDateFormat as defined here: http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html
    104. # some examples:
    105. #  d/M/yyyy h:mm a => 15/7/2012 8:53 PM
    106. #  dd.MM.yyyy, HH:mm => 16.03.2013, 09:33
    109. verbosity: normal
    110. # Determines how much info is logged.
    111. # Allowed values: low, normal, high, very high, debug
    112. # The highest you should go is very high, which prints quite a lot of useful information,
    113. # including how much time each trigger takes to execute.
    114. # Only use debug if you're programming an add-on for Skript, but even then you might usually not need it.
    117. plugin priority: high
    118. # Allowed values: lowest, low, normal, high, highest
    119. # Change this if you encounter problems with other plugins, e.g.:
    120. # - cancelled events: The event is cancelled by another plugin, but Skript handles the event nonetheless => increase priority
    121. #                    (e.g. WorldGuard cancels events if a player doesn't have permission for the given region,
    122. #                     and you made some 'place' triggers which should not bypass WorldGuard's protection)
    123. # - effects '(un)cancel event': Another plugin should/should not process the event, but does/does not => decrease priority
    124. # - effect 'drop': Another plugin doesn't process added drops => decrease priority
    125. # - effects 'remove ... from drops'/'clear drops': Drops added by other plugins are not removed => increase priority
    126. #                                                  Skript removes drops it shouldn't => decrease priority or specify which item types to remove
    129. log player commands: true
    130. # Whether Skript should log the usage of custom commands.
    131. # They will be logged as [INFORMATION] in this format: '<player>: /<command> <arguments>'
    134. number accuracy: 2
    135. # How many digits should be displayed after the dot at maximum when displaying numbers.
    136. # Zeroes will never be displayed at all, so this setting only applies to numbers that actually have a decimal part with one or more non-zero digits.
    137. # Money bypasses this setting and is displayed as configured in your economy plugin if you have one.
    140. maximum target block distance: 100
    141. # How far to search for a player's targeted block in blocks/meters.
    142. # Lower values improve performance, but might reduce the usability of your scripts.
    143. # This value is limited by the server (e.g. by 'view-distance' in the server.properties), but is guaranteed to work up to 100 meters.
    146. case sensitive: false
    147. # Whether Skript's functions should be case sensitive or not.
    148. # This e.g. applies to the effect 'replace' and the conditions 'contains' and 'is/is not'.
    149. # Variable names are case-insensitive irrespective of this setting.
    151. disable variable conflict warnings: false
    152. # Disables warnings of potential variable name conflicts if set to true.
    153. # I recommend to not touch this option, but if you do so you should at least set it back to false
    154. # whenever you create new scripts with new variables.
    156. disable variable will not be saved warnings: false
    157. # Disables the "... i.e contents cannot be saved ..." warning when reloading and something in your scripts sets a variable(non local) to a value that is not serializable.
    158. # By Mirre.
    160. disable variable missing and/or warnings: false
    161. # Disables the "List is missing 'and' or 'or', defaulting to 'and'" warning when reloading your script.
    163. disable starting a variable's name with an expression warnings: false
    164. # Disables the "Starting a variable's name with an expression is discouraged..." warnings
    166. soft api exceptions: false
    167. # Allows Skript to ignore certain actions which would normally result in thrown exceptions.
    168. # If everything works correctly, you should keep this option disabled. It might cause problems in some cases.
    169. # However, if Skript or addons of it are not working correctly, this might help.
    170. # You may also get told to enable this by Skript or addon developers - then do so.
    172. enable timings: false
    173. # When enabled, triggers in scripts will be present in timings reports.
    174. # Note that this requires Paper (https://paper.readthedocs.io/en/paper-1.11/) to work; on Bukkit/Spigot this option has no effect.
    175. # When false, timings are not enabled for scripts even if you're running Paper.
    177. parse links in chat messages: disabled
    178. # Controls how Skript will try to parse links in chat messages.
    179. # If 'disabled' or 'false', no links will be automatically parsed.
    180. # When 'strict', everything starting with http(s):// will be parsed as link.
    181. # When 'lenient', everything that contains a dot will be interpreted as a link.
    183. color codes reset formatting: true
    184. # With old Minecraft chat protocol, color codes used to reset formatting of text.
    185. # With JSON-based new chat protocol, this is not necessary, but can be done
    186. # manually for compatibility. This is done by default for compatibility.
    188. # ==== Variables ====
    190. databases:
    191.     # Databases to store variables in. These can either be used as a simple one-server-storage
    192.     # where variables are written constantly but only read at server start,
    193.     # or as a connection between multiple servers by monitoring the database(s) for changes.
    194.     #
    195.     # You can define as many databases as you want, just make sure to choose a distinct name for each one, and don't forget to set all options correctly.
    196.     #
    197.     # To be able to use a database you'll need to download the plugin 'SQLibrary' from http://dev.bukkit.org/server-mods/sqlibrary/files/
    198.     # and install it in your server's plugin directory like other plugins.
    199.     #
    200.     # Please note that '/skript reload' will not reload this section, i.e. you'll have to restart Skript for changes to take effect.
    202.     # Each database definition must be in a separate section. You can choose any name for the sections, as long as it's not already used.
    203.     database 1:
    204.         # an example database to describe all possible options.
    206.         type: disabled
    207.         # The type of this database. Allowed values are 'CSV', 'SQLite', 'MySQL' and 'disabled'.
    208.         # CSV uses a text file to store the variables, while SQLite and MySQL use databases, and 'disabled' makes Skript ignore the database as if it wasn't defined at all.
    210.         pattern: .*
    211.         # Defines which variables to save in this database.
    212.         # This pattern uses Regex syntax, e.g. use 'db_.*' (without the quotes) to store all variables prefixed with 'db_' in this database,
    213.         # or use '.*' (the default value) to store all variables here (recommended for the last database in this list, as otherwise some variables might not be saved).
    214.         # Please note that variables are only stored in one database, and databases are checked from top to bottom,
    215.         # e.g. if a variable matches the topmost database's pattern it will be saved there and nowhere else.
    216.         # BTW: Patterns are checked in a separate thread, i.e. your server likely won't run slower when using complicated patterns.
    218.         monitor changes: false
    219.         monitor interval: 20 seconds
    220.         # If 'monitor changes' is set to true, variables will repeatedly be checked for updates in the database (in intervals set in 'monitor interval').
    221.         # ! Please note that you should set 'pattern', 'monitor changes' and 'monitor interval' to the same values on all servers that access the same database!
    223.         # == MySQL configuration ==
    224.         host: localhost# Where the database server is located at, e.g. 'example.com', 'localhost', or ''
    225.         port: 3306# 3306 is MySQL's default port, i.e. you likely won't need to change this value
    226.         user: root
    227.         password: pass
    228.         database: skript# The database to use. Skript will automatically create a table 'variables21' in this database if it doesn't exist
    229.         # (If the table exists but is defined differently that how Skript expects it to be you'll get errors and no variables will be saved and/or loaded)
    231.         # == SQLite/CSV configuration ==
    232.         file: ./plugins/Skript/variables.db
    233.         # Where to save the variables to. For a CSV file, the file extension '.csv' is recommended, but not required, but SQLite database files must end in '.db' (SQLibrary forces this).
    234.         # The file path can either be absolute (e.g. 'C:\whatever\...' [Windows] or '/usr/whatever/...' [Unix]), or relative to the server directory (e.g. './plugins/Skript/...').
    236.         backup interval: 2 hours
    237.         # Creates a backup of the file every so often. This can be useful if you ever want to revert variables to an older state.
    238.         # Variables are saved constantly no matter what is set here, thus a server crash will never make you loose any variables.
    239.         # Set this to 0 to disable this feature.
    242.     MySQL example:
    243.         # A MySQL database example, with options unrelated to MySQL removed.
    245.         type: disabled# change to line below to enable this database
    246.         # type: MySQL
    248.         pattern: synced_.*# this pattern will save all variables that start with 'synced_' in this MySQL database.
    250.         host: localhost
    251.         port: 3306
    252.         user: root
    253.         password: pass
    254.         database: skript
    256.         monitor changes: true
    257.         monitor interval: 20 seconds
    259.     SQLite example:
    260.         # An SQLite database example.
    262.         type: disabled# change to line below to enable this database
    263.         # type: SQLite
    265.         pattern: db_.*# this pattern will save all variables that start with 'db_' in this SQLite database.
    267.         file: ./plugins/Skript/variables.db
    268.         # SQLite databases must end in '.db'
    270.         backup interval: 0# 0 = don't create backups
    271.         monitor changes: false
    272.         monitor interval: 20 seconds
    274.     default:
    275.         # The default "database" is a simple text file, with each variable on a separate line and the variable's name, type, and value separated by commas.
    276.         # This is the last database in this list to catch all variables that have not been saved anywhere else.
    277.         # You can modify this database freely, but make sure to know what you're doing if you don't want to loose any variables.
    279.         type: CSV
    281.         pattern: .*
    283.         file: ./plugins/Skript/variables.csv
    285.         backup interval: 2 hours
    287.         # PS: If you don't want some variables to be saved in any database (e.g. variables that contain an %entity% which usually despawn when the server is shut down)
    288.         # you can modify the last database's pattern to not match all variables, e.g. use '(?!x_).*' to match all variables that don't start with 'x_'.
    289.         # Be very cautious when doing this however as unsaved variables cannot be recovered after the server has been stopped.
    290.         # I recommend to use a single character to denote unsaved variables (similar to local variables' '_'), e.g. '-', in which case the last database's pattern should be '(?!-).*'.
    294.         # ==== Settings that should not be changed ====
    296. version: 2.2-dev33
    298. # This saves for which version of Skript this configuration was written for.
    299. # If it does not match the version of the .jar file then the config will be updated automatically.
  6. ShaneBee

    Supporter + Addon Developer

    Sep 7, 2017
    Likes Received:
    have you recently reload your server using (/reload)?
    If yes.... restart your server. reload screws up skript.

    If no...
    Here is what i recommend. Your skript.jar file might be corrupt.
    Stop your server.
    Backup your skript folder, then delete it as well as delete your skript.jar
    re-download the jar file, and start your server, letting everything in that folder regenerate.
    stop your server
    Then put your scripts back in the skript folder, and change the config to suit your needs.
    Then start your server back up
  7. Noblesuntzu

    Noblesuntzu Active Member

    Feb 18, 2017
    Likes Received:
    Sir you have solved my problem thank you very much! The only problem I have now is with reloading a specific script (it throws the same error) but I'm assuming this is because I screwed up syntax (this script) so don't bother looking into that. Anyway thanks again!
  8. ShaneBee

    Supporter + Addon Developer

    Sep 7, 2017
    Likes Received:
    You're very welcome :emoji_slight_smile:
    Glad to help

Share This Page