Coder Social home page Coder Social logo

mezy / uhccore Goto Github PK

View Code? Open in Web Editor NEW
104.0 104.0 73.0 2.77 MB

Automates UHC games on a dedicated 1.8.8 - 1.17 server

Home Page: https://www.spigotmc.org/resources/uhccore-automated-uhc-for-minecraft-1-8-1-14.47572/

License: GNU General Public License v3.0

Java 100.00%

uhccore's People

Contributors

abedaton avatar belked avatar elteammate avatar hou0122 avatar joshuaye1024 avatar koca2000 avatar latelylk avatar leelvyn avatar mezy avatar nuriofernandez avatar osbourn avatar pieterdebot avatar stokdam avatar xen0xys 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  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  avatar  avatar  avatar  avatar  avatar

uhccore's Issues

Hunger drops too slow

Difficulty is HARD, but even after 1h of play, players only drop 2-3 hungers. It might have something to do with the effects before the game starts?

Debug mode nether world bug

When I enter on a portal to nether it teleport to another overworld, and can't return with the same portal(I think this is the world folder and tp back to the second-OW). Yes it sound weird but it happens to me.

Version: UhcCore-1.18.9

Steps to reproduce:
Create a new world with all config default(i just have a few changes, and testing for worldborder)
Stop the server, change to debug: true (also I test alone, so one-player-mode: true)
Start de server
Start a game
Create a nether portal, and enter it

a few lines of output log when after change the setting

[07:16:31] [Server thread/INFO]: Preparing level "world"
[07:16:32] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
[07:16:33] [Server thread/INFO]: Loaded 0 spawn chunks for world world
[07:16:33] [Server thread/INFO]: Preparing spawn area: 0%
[07:16:33] [Server thread/INFO]: Preparing spawn area: 0%
[07:16:33] [Server thread/INFO]: Preparing spawn area: 0%
[07:16:33] [Server thread/INFO]: Time elapsed: 1225 ms
[07:16:33] [Server thread/INFO]: Preparing start region for dimension minecraft:the_nether
[07:16:33] [Server thread/INFO]: Loaded 0 spawn chunks for world world_nether
[07:16:33] [Server thread/INFO]: Time elapsed: 538 ms
[07:16:33] [Server thread/INFO]: [UhcCore] Enabling UhcCore v1.18.9
[07:16:33] [Server thread/INFO]: [UhcCore] 1.16 Server detected!
[07:16:34] [Server thread/INFO]: [UhcCore] Loading plugins/UhcCore/scoreboard.yml
[07:16:34] [Server thread/INFO]: [UhcCore] Loading plugins/UhcCore/storage.yml
[07:16:34] [Server thread/INFO]: [uhcinfo] Enabling uhcinfo v1.0.0
[07:16:41] [Server thread/INFO]: [net.dv8tion.jda.api.JDA] Login Successful!
[07:16:42] [Server thread/INFO]: Running delayed init tasks
[07:16:42] [Server thread/INFO]: [UhcCore] Loading plugins/UhcCore/lang.yml
[07:16:42] [JDA MainWS-ReadThread/INFO]: [net.dv8tion.jda.internal.requests.WebSocketClient] Connected to WebSocket
[07:16:42] [Server thread/INFO]: [UhcCore] Loading plugins/UhcCore/config.yml
[07:16:42] [Server thread/INFO]: [UhcCore] Loading plugins/UhcCore/storage.yml
[07:16:42] [Server thread/WARN]: [UhcCore] WorldEdit plugin not found, there will be no support of schematics.
[07:16:42] [Server thread/WARN]: [UhcCore] Vault plugin not found, there will be no support of economy rewards.
[07:16:42] [Server thread/WARN]: [UhcCore] ProtocolLib plugin not found.
[07:16:42] [Server thread/INFO]: [UhcCore] Loading custom craft for golden heads
[07:16:42] [Server thread/WARN]: Initializing Legacy Material Support. Unless you have legacy plugins and/or data this is a bug!
[07:16:43] [JDA MainWS-ReadThread/INFO]: [net.dv8tion.jda.api.JDA] Finished Loading!
[07:17:06] [Server thread/INFO]: [UhcCore] Border start size is 200
[07:17:06] [Server thread/INFO]: [UhcCore] Border end size is 200
[07:17:06] [Server thread/INFO]: [UhcCore] Border moves : true
[07:17:06] [Server thread/INFO]: [UhcCore] Border timeBeforeEnd : 300
[07:17:06] [Server thread/INFO]: [UhcCore] Start loading kits
[07:17:06] [Server thread/INFO]: [UhcCore] Loading plugins/UhcCore/kits.yml
[07:17:06] [Server thread/INFO]: [UhcCore] Loaded 0 kits
[07:17:06] [Server thread/INFO]: [UhcCore] Loading banned crafts list
[07:17:06] [Server thread/INFO]: [UhcCore] Loading plugins/UhcCore/crafts.yml
[07:17:06] [Server thread/INFO]: [UhcCore] Removed recipe for minecraft:suspicious_stew
[07:17:06] [Server thread/INFO]: [UhcCore] Loading custom crafts
[07:17:06] [Server thread/INFO]: [UhcCore] Loading plugins/UhcCore/crafts.yml
[07:17:06] [Server thread/INFO]: [UhcCore] Done loading custom crafts
[07:17:06] [Server thread/INFO]: Preparing start region for dimension minecraft:59d58a96-3298-46e4-9a1c-372f0ca1fde3
[07:17:07] [Server thread/INFO]: Loaded 0 spawn chunks for world 59d58a96-3298-46e4-9a1c-372f0ca1fde3
[07:17:09] [Server thread/INFO]: Preparing spawn area: 0%
[07:17:09] [Server thread/INFO]: Preparing spawn area: 0%
[07:17:09] [Server thread/INFO]: Preparing spawn area: 0%
[07:17:09] [Server thread/INFO]: Preparing spawn area: 0%
[07:17:09] [Server thread/INFO]: Preparing spawn area: 0%
[07:17:09] [Server thread/INFO]: Preparing spawn area: 0%
[07:17:09] [Server thread/INFO]: Preparing spawn area: 0%
[07:17:10] [Server thread/INFO]: Preparing spawn area: 0%
[07:17:10] [Server thread/INFO]: Time elapsed: 3635 ms
[07:17:16] [Server thread/INFO]: Preparing start region for dimension minecraft:2f44ba17-f340-4e6d-bd48-563d73450ce0
[07:17:17] [Server thread/INFO]: Loaded 0 spawn chunks for world 2f44ba17-f340-4e6d-bd48-563d73450ce0
[07:17:18] [Server thread/INFO]: Time elapsed: 2040 ms
[07:17:18] [Server thread/WARN]: A manual (plugin-induced) save has been detected while server is configured to auto-save. This may affect performance.
[07:17:36] [Server thread/INFO]: [UhcCore] No WorldEdit installed so ending with deathmatch at 0 0
[07:17:36] [Server thread/INFO]: [UHC] Players are now allowed to join
[07:17:36] [Server thread/INFO]: Done (68.546s)! For help, type "help"

Map generation exceptions

Got many exceptions during map generation. They seem to appear randomly. However, server starts after that without problems.

I tried to run server on 2 and 8 core cpu server (needed faster map generation) and didn't see such exceptions on 2 core cpu server.

I'm using the latest plugin version 1.15.9 and the latest spigot 1.15.2 build.

Log:

[14:37:19] [Server thread/INFO]: [UhcCore] Loading map NORMAL 17.2% - 2695.0/15625.0 chunks loaded
[14:37:29] [Server thread/FATAL]: Failed to schedule unload callback for chunk [-40, 41]
java.util.concurrent.CompletionException: java.lang.IllegalStateException: Already queued
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) ~[?:?]
	at java.util.concurrent.CompletableFuture.uniAcceptNow(CompletableFuture.java:757) [?:?]
	at java.util.concurrent.CompletableFuture.uniAcceptStage(CompletableFuture.java:731) [?:?]
	at java.util.concurrent.CompletableFuture.thenAccept(CompletableFuture.java:2108) [?:?]
	at net.minecraft.server.v1_15_R1.PlayerChunk.a(PlayerChunk.java:293) [spigot.jar:git-Spigot-6de3d4b-fc24934]
	at net.minecraft.server.v1_15_R1.ChunkMapDistance.a(ChunkMapDistance.java:107) [spigot.jar:git-Spigot-6de3d4b-fc24934]
	at net.minecraft.server.v1_15_R1.ChunkProviderServer.tickDistanceManager(ChunkProviderServer.java:252) [spigot.jar:git-Spigot-6de3d4b-fc24934]
	at net.minecraft.server.v1_15_R1.ChunkProviderServer.purgeUnload(ChunkProviderServer.java:324) [spigot.jar:git-Spigot-6de3d4b-fc24934]
	at org.bukkit.craftbukkit.v1_15_R1.CraftWorld.unloadChunk0(CraftWorld.java:397) [spigot.jar:git-Spigot-6de3d4b-fc24934]
	at org.bukkit.craftbukkit.v1_15_R1.CraftWorld.unloadChunk(CraftWorld.java:373) [spigot.jar:git-Spigot-6de3d4b-fc24934]
	at org.bukkit.craftbukkit.v1_15_R1.CraftWorld.unloadChunk(CraftWorld.java:368) [spigot.jar:git-Spigot-6de3d4b-fc24934]
	at com.gmail.val59000mc.maploader.MapLoader$1$1RunnableWithParameter.run(MapLoader.java:270) [UhcCore-1.15.9.jar:?]
	at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:81) [spigot.jar:git-Spigot-6de3d4b-fc24934]
	at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:394) [spigot.jar:git-Spigot-6de3d4b-fc24934]
	at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1036) [spigot.jar:git-Spigot-6de3d4b-fc24934]
	at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:406) [spigot.jar:git-Spigot-6de3d4b-fc24934]
	at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:984) [spigot.jar:git-Spigot-6de3d4b-fc24934]
	at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:824) [spigot.jar:git-Spigot-6de3d4b-fc24934]
	at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.lang.IllegalStateException: Already queued
	at net.minecraft.server.v1_15_R1.PlayerChunkMap$CallbackExecutor.execute(PlayerChunkMap.java:86) ~[spigot.jar:git-Spigot-6de3d4b-fc24934]
	at net.minecraft.server.v1_15_R1.PlayerChunk.lambda$4(PlayerChunk.java:296) ~[spigot.jar:git-Spigot-6de3d4b-fc24934]
	at java.util.concurrent.CompletableFuture.uniAcceptNow(CompletableFuture.java:753) ~[?:?]
	... 17 more
[14:37:31] [Server thread/INFO]: [UhcCore] Loading map NORMAL 18.4% - 2885.0/15625.0 chunks loaded

[Scenario] Better Timber

Hey Mezy,

I have a suggestion for a scenario. In this scenario will like in Timber scenario breaking a log of a tree will cause the whole tree to fall down, but it should be combined with Fast Leaves Decay in which would leaves decay immediately and leaves would drop just apples (not saplings and sticks). Also every log of tree should drop 4 Oak Planks instead Log. I think it is a good feature to speed up the game, so players didn't have to craft planks...

Thanks,
BelKed

Replacing oceans with plains/biomes does not work on 1.16.4

Log:

[16:28:58 WARN]: java.lang.NoSuchFieldException: modifiers
[16:28:58 WARN]:        at java.base/java.lang.Class.getDeclaredField(Class.java:2569)
[16:28:58 WARN]:        at com.gmail.val59000mc.utils.NMSUtils.removeFinal(NMSUtils.java:128)
[16:28:58 WARN]:        at com.gmail.val59000mc.maploader.BiomeMapping16$Biome.getField(BiomeMapping16.java:58)
[16:28:58 WARN]:        at com.gmail.val59000mc.maploader.BiomeMapping16.replaceBiomes(BiomeMapping16.java:73)
[16:28:58 WARN]:        at com.gmail.val59000mc.utils.VersionUtils_1_16.replaceOceanBiomes(VersionUtils_1_16.java:10)
[16:28:58 WARN]:        at com.gmail.val59000mc.game.GameManager.loadNewGame(GameManager.java:238)
[16:28:58 WARN]:        at com.gmail.val59000mc.UhcCore.lambda$onEnable$0(UhcCore.java:37)
[16:28:58 WARN]:        at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:99)
[16:28:58 WARN]:        at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468)
[16:28:58 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:944)
[16:28:58 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:177)
[16:28:58 WARN]:        at java.base/java.lang.Thread.run(Thread.java:832)
[16:28:58 WARN]: java.lang.NoSuchFieldException: modifiers
[16:28:58 WARN]:        at java.base/java.lang.Class.getDeclaredField(Class.java:2569)
[16:28:58 WARN]:        at com.gmail.val59000mc.utils.NMSUtils.removeFinal(NMSUtils.java:128)
[16:28:58 WARN]:        at com.gmail.val59000mc.maploader.BiomeMapping16$Biome.getField(BiomeMapping16.java:58)
[16:28:58 WARN]:        at com.gmail.val59000mc.maploader.BiomeMapping16.replaceBiomes(BiomeMapping16.java:73)
[16:28:58 WARN]:        at com.gmail.val59000mc.utils.VersionUtils_1_16.replaceOceanBiomes(VersionUtils_1_16.java:10)
[16:28:58 WARN]:        at com.gmail.val59000mc.game.GameManager.loadNewGame(GameManager.java:238)
[16:28:58 WARN]:        at com.gmail.val59000mc.UhcCore.lambda$onEnable$0(UhcCore.java:37)
[16:28:58 WARN]:        at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:99)
[16:28:58 WARN]:        at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468)
[16:28:58 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:944)
[16:28:58 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:177)
[16:28:58 WARN]:        at java.base/java.lang.Thread.run(Thread.java:832)
[16:28:58 WARN]: [UhcCore] Task #60 for UhcCore v1.18.6 generated an exception
java.lang.NullPointerException: Cannot invoke "java.lang.reflect.Field.get(Object)" because the return value of "com.gmail.val59000mc.maploader.BiomeMapping16$Biome.getField()" is null
        at com.gmail.val59000mc.maploader.BiomeMapping16.replaceBiomes(BiomeMapping16.java:73) ~[?:?]
        at com.gmail.val59000mc.utils.VersionUtils_1_16.replaceOceanBiomes(VersionUtils_1_16.java:10) ~[?:?]
        at com.gmail.val59000mc.game.GameManager.loadNewGame(GameManager.java:238) ~[?:?]
        at com.gmail.val59000mc.UhcCore.lambda$onEnable$0(UhcCore.java:37) ~[?:?]
        at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:99) ~[patched_1.16.4.jar:git-Paper-300]
        at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.16.4.jar:git-Paper-300]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:944) ~[patched_1.16.4.jar:git-Paper-300]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:177) ~[patched_1.16.4.jar:git-Paper-300]
        at java.lang.Thread.run(Thread.java:832) [?:?]

Throws java.lang.NoSuchFieldException.

Sugar cane bug

Sugar cane does not appear on the maps or appears very little, and changing the percentage does not work either

Add multiple drops with percentage support to config.yml

Hey Mezy,

I have a suggestion for a change. I think you could add multiple drops with percentage support to config.yml. So syntax could be like:

REDSTONE_ORE:
  loot:
    - '{"type":"NETHER_WART","minimum":1,"maximum":3,"chance":"30%"}'
    - '{"type":"BREWING_STAND","chance":"20%"}'
    - '{"type":"REDSTONE","minimum":1,"maximum":3,"chance":"20%"}'
    - '{"type":"SUGAR","chance":"10%"}'
    - '{"type":"MAGMA_CREAM","chance":"10%"}'
    - '{"type":"BLAZE_POWDER","chance":"10%"}'
  add-xp: 3

It would help me and (I think) others a lot.

Thanks,
BelKed

Rate ores

The maps are very good but there is a problem, I would like to raise the diamond rate a bit. Please I need help

Scenarios menu empty

Hello!

When I open the Scenarios menu, it appears empty. I've just upgraded from the version 15 to 18 so is there any new configuration option to show scenarios or what?

Regards, šijanec

Screenshot from 2020-08-04 01-23-02

lang.yml edition doesn't take effect.

I edited the entire lang.yml file to be in my language but when I start the server the file just reset itself. So it doesn't work.

I'm hosting a UHC with my community but I NEED to custom the lang.yml file.

I am using:
Spigot 1.15.1
UhcCore 1.15 (Dec 11, 2019)

Items not given upon first join

I have a UHC server on my network, using spigot 1.8.8, and when players first join the UHC server they don't receive any items in there inventory. They are forced to rejoin to obtain them.

Custom crafts causes to initialize spigot legacy material support

UhcCore version: 1.19.2
Minecraft version: 1.16.4/1.16.5

Loading custom crafts causes to initialize spigot legacy material support, that adds additional 5 to 10 seconds to server startup.

Config

custom-crafts:
  'Refil':
    '1': '{"type":"AIR"} {"type":"GOLD_INGOT"} {"type":"AIR"}'
    '2': '{"type":"GOLD_INGOT"} {"type":"APPLE"} {"type":"GOLD_INGOT"}'
    '3': '{"type":"AIR"} {"type":"GOLD_INGOT"} {"type":"AIR"}'
    craft: '{"type":"GOLDEN_APPLE"}'
    default-name: true
    limit: -1

Log:

[18:03:45 INFO]: [UhcCore] Loading plugins/UhcCore/lang.yml
>....
[18:03:45 INFO]: [UhcCore] Loading plugins/UhcCore/config.yml
>....
[18:03:45 INFO]: [UhcCore] Hooked with WorldEdit plugin.
>....
[18:03:45 INFO]: [UhcCore] Hooked with Vault plugin.
>....
[18:03:45 INFO]: [UhcCore] Hooked with ProtocolLib plugin.
>....
[18:03:45 INFO]: [UhcCore] Loading plugins/UhcCore/storage.yml
>....
[18:03:46 INFO]: [UhcCore] Start loading kits
>....
[18:03:46 INFO]: [UhcCore] Loading plugins/UhcCore/kits.yml
>....
[18:03:46 INFO]: [UhcCore] Loaded 0 kits
>....
[18:03:46 INFO]: [UhcCore] Loading banned crafts list
>....
[18:03:46 INFO]: [UhcCore] Loading plugins/UhcCore/crafts.yml
>....
[18:03:46 INFO]: [UhcCore] Removed recipe for minecraft:golden_apple
>....
[18:03:46 INFO]: [UhcCore] Loading custom crafts
>....
[18:03:46 INFO]: [UhcCore] Loading plugins/UhcCore/crafts.yml
>....
[18:03:46 INFO]: [UhcCore] Loading custom craft Refil
>....
[18:03:46 WARN]: Initializing Legacy Material Support. Unless you have legacy plugins and/or data this is a bug!
>....
[18:03:46 WARN]: java.lang.Exception
>....
[18:03:46 WARN]: 	at org.bukkit.craftbukkit.v1_16_R3.legacy.CraftLegacy.<clinit>(CraftLegacy.java:259)
>....
[18:03:46 WARN]: 	at org.bukkit.craftbukkit.v1_16_R3.util.CraftMagicNumbers.toLegacy(CraftMagicNumbers.java:192)
>....
[18:03:46 WARN]: 	at org.bukkit.inventory.ItemStack.getData(ItemStack.java:176)
>....
[18:03:46 WARN]: 	at com.gmail.val59000mc.customitems.Craft.register(Craft.java:101)
>....
[18:03:46 WARN]: 	at com.gmail.val59000mc.customitems.Craft.<init>(Craft.java:44)
>....
[18:03:46 WARN]: 	at com.gmail.val59000mc.customitems.CraftsManager.loadCrafts(CraftsManager.java:144)
>....
[18:03:46 WARN]: 	at com.gmail.val59000mc.game.GameManager.loadConfig(GameManager.java:347)
>....
[18:03:46 WARN]: 	at com.gmail.val59000mc.game.GameManager.loadNewGame(GameManager.java:228)
>....
[18:03:46 WARN]: 	at com.gmail.val59000mc.UhcCore.lambda$onEnable$0(UhcCore.java:25)
>....
[18:03:46 WARN]: 	at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:100)
>....
[18:03:46 WARN]: 	at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468)
>....
[18:03:46 WARN]: 	at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:953)
>....
[18:03:46 WARN]: 	at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:178)
>....
[18:03:46 WARN]: 	at java.base/java.lang.Thread.run(Thread.java:832)
>....
[18:03:51 INFO]: [UhcCore] Refil custom craft registered
>....

Custom potions in kits and flower power no longer working

Plugin Version: 1.17.2

Fails to load custom potions in kits and flower power.
Works fine in 1.17.1

Examples:

- '{"type":"POTION","display-name":"Mining Potion","base-effect":{"type":"WATER"},"custom-effects":[{"type":"FAST_DIGGING","duration":6000,"amplifier":2}]}'

- '{"type":"POTION","display-name":"Dragon Potion","base-effect":{"type":"UNCRAFTABLE"},"custom-effects":[{"type":"SPEED","duration":1200,"amplifier":0},{"type":"HEAL","duration":1,"amplifier":0},{"type":"DAMAGE_RESISTANCE","duration":1200,"amplifier":0},{"type":"FIRE_RESISTANCE","duration":1200,"amplifier":0},{"type":"ABSORPTION","duration":1200,"amplifier":0}]}'

image
image

Github "About" not updated to 1.16

The "about" text for this repo states "Automates UHC games on a dedicated 1.8 - 1.15 server", while other documentation states that up to 1.16 is supported.

How To Change [UHCore] ?

How To Change [UHCore] Alert. Like :
[UHCore] Starting the game now!

i want to change to my NPC Moderator Bot Name

UhcCore reloading plugins every 30 minutes.

I seem to have an issue with the terminal and logs filling up with this.

[00:32:00] [Server thread/INFO]: [UhcCore] Loading plugins/UhcCore/storage.yml
[01:02:00] [Server thread/INFO]: [UhcCore] Loading plugins/UhcCore/storage.yml
[01:32:00] [Server thread/INFO]: [UhcCore] Loading plugins/UhcCore/storage.yml
[02:02:00] [Server thread/INFO]: [UhcCore] Loading plugins/UhcCore/storage.yml
[02:32:00] [Server thread/INFO]: [UhcCore] Loading plugins/UhcCore/storage.yml

Java 1.8 (OpenJDK 64-Bit Server VM 25.222-b10)
Linux 4.15.0-70-generic (amd64)
Paper version git-Paper-226 (MC: 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT)
UhcCore v1.14.7
No other plugins.

Golden Head is not working when it stacked.

In com.gmail.val59000mc.listeners.ItemsListener
Here is right code with changes in condition, where was .equals() now .isSimilar()

	public void onPlayerItemConsume(PlayerItemConsumeEvent e){
		ItemStack item = e.getItem();
		if (item == null) return;
		ItemStack goldenHead = UhcItems.createGoldenHead();
		if (item.isSimilar(goldenHead)) {     //HERE SHOULD ME isSimilar to ignore amount of ItemStack
			e.getPlayer().addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 200, 1));
		}
	}

Random drops scenario errors when attempting to drop Air

When a block with drop of Air gets broken it outputs the error below to the console, quite annoying when its a common block and it fills the logs.

[19:47:56 ERROR]: Could not pass event BlockBreakEvent to UhcCore v1.18.5
java.lang.IllegalArgumentException: Cannot drop air
        at com.google.common.base.Preconditions.checkArgument(Preconditions.java:122) ~[patched_1.16.4.jar:git-Paper-279]
        at net.minecraft.server.v1_16_R3.EntityItem.setItemStack(EntityItem.java:454) ~[patched_1.16.4.jar:git-Paper-279]
        at net.minecraft.server.v1_16_R3.EntityItem.<init>(EntityItem.java:42) ~[patched_1.16.4.jar:git-Paper-279]
        at org.bukkit.craftbukkit.v1_16_R3.CraftWorld.dropItem(CraftWorld.java:748) ~[patched_1.16.4.jar:git-Paper-279]
        at org.bukkit.craftbukkit.v1_16_R3.CraftWorld.dropItemNaturally(CraftWorld.java:763) ~[patched_1.16.4.jar:git-Paper-279]
        at com.gmail.val59000mc.scenarios.scenariolisteners.RandomizedDropsListener.onBlockBreak(RandomizedDropsListener.java:90) ~[?:?]
        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor43.execute(Unknown Source) ~[?:?]
        at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.16.4.jar:git-Paper-279]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.16.4.jar:git-Paper-279]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.4.jar:git-Paper-279]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.16.4.jar:git-Paper-279]
        at net.minecraft.server.v1_16_R3.PlayerInteractManager.breakBlock(PlayerInteractManager.java:324) ~[patched_1.16.4.jar:git-Paper-279]
        at net.minecraft.server.v1_16_R3.PlayerInteractManager.a(PlayerInteractManager.java:283) ~[patched_1.16.4.jar:git-Paper-279]
        at net.minecraft.server.v1_16_R3.PlayerInteractManager.a(PlayerInteractManager.java:249) ~[patched_1.16.4.jar:git-Paper-279]
        at net.minecraft.server.v1_16_R3.PlayerConnection.a(PlayerConnection.java:1472) ~[patched_1.16.4.jar:git-Paper-279]
        at net.minecraft.server.v1_16_R3.PacketPlayInBlockDig.a(SourceFile:40) ~[patched_1.16.4.jar:git-Paper-279]
        at net.minecraft.server.v1_16_R3.PacketPlayInBlockDig.a(SourceFile:10) ~[patched_1.16.4.jar:git-Paper-279]
        at net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:23) ~[patched_1.16.4.jar:git-Paper-279]
        at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18) ~[patched_1.16.4.jar:git-Paper-279]
        at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.16.4.jar:git-Paper-279]
        at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.16.4.jar:git-Paper-279]
        at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.16.4.jar:git-Paper-279]
        at net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1136) ~[patched_1.16.4.jar:git-Paper-279]
        at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1129) ~[patched_1.16.4.jar:git-Paper-279]
        at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeAll(IAsyncTaskHandler.java:95) ~[patched_1.16.4.jar:git-Paper-279]
        at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1265) ~[patched_1.16.4.jar:git-Paper-279]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1000) ~[patched_1.16.4.jar:git-Paper-279]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:177) ~[patched_1.16.4.jar:git-Paper-279]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]

Dead link

Hello just info i'm french and the download link for the french translation is dead, please host it on a real server not on MegaUpload...

Some stuff that it would be great to add on.

-An option that allow to be able to craft things in any order, like Vanilla Minecraft. In the current version of the plugin, the craft recipe can only be crafted in the way that the admin wrote on the config files.

Like:
Air/Air/Air
Air/Air/GoldBlock
Air/Air/Melon

That is the only way to craft that, and can not be like this:
Air/Air/Air
Melon/GoldBlock/Air
Air/Air/Air

-Be able to use /tp like a normal server being an op.
-A option to use a map for ever. Ex: A map that you want to use always. And after ended an UHC, that map wont regenerate, just use the first version of that map, the version before being use on the UHC.
-Be able to change the name of the teams.

Some scenarios don't work with other

Hello,
I love this plugin, good work,
but I notice some scenarios don't work, like vein miner, when i use other scenarios like timber and triple ore.

Could you do something for this ?
thank you .

some advices =]

Admin forced to change team members
Admin forced to change the team's readiness
help command can not be used

Broken biome replacement

Starting from 1.16, it looks like the biome managment got some kind of refactoring, breaking the biome class mapping.

Screenshot_20201107_132419

Screenshot_20201107_132651

Let us translate scenario names!

Please make names of scenarios translatable
I can only translate descriptions of scenarios but not the GUI scenarios and scoreboard
I'd like to translate the names of scenarios in the scoreboard sidebar and in names of items in the GUI

Auto-Restart Failing

After the completion of a game -- one player remaining, the server fails to call the restart command.

Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
git-Spigot-f56e2e7-7fc66b2 (MC: 1.13.2) (Implementing API version 1.13.2-R0.1-SNAPSHOT)
PlayUHC v1.9.3

latest.log, config.yml and lang.yml available at https://github.com/ColinHaley/ASOV_public

[Scenario] Stone Tools

Hey Mezy,

I have a suggestion for a scenario. In this scenario will crafting wooden tools create stone tools instead. Also this scenario should work with Hastey Boys scenario. I think it is a good feature to speed up the game...

Thanks,
BelKed

Veins not generating properly

After downloading the source code into IntelliJ and then building it, I have seen that the veins are not being loaded correctly. When setting diamond ores to generate a lot, I can only see it working in the spawn chunk, in others it is default Minecraft.
However, with the download from SpigotMC it works fine this concludes to me that it should be broken after release 1.18.1.
Let me know if more information is needed.

Forbid the use of items at the beginning of deathmatch

After teleport at the beginning of deathmatch, there is a period when players can't move, but at this period they can use items. If one teleported too high with other players nearby, he always get targeted by all, this is really unfair. Can you please fix this?

1.17 Issue upon Plugin Load with BiomeMapping

[10:21:26] [Server thread/INFO]: [UhcCore] 1.17 Server detected!
[10:21:26] [Server thread/WARN]: [UhcCore] WorldEdit plugin not found, there will be no support of schematics.
[10:21:26] [Server thread/INFO]: [UhcCore] Hooked with Vault plugin.
[10:21:26] [Server thread/WARN]: [UhcCore] ProtocolLib plugin not found.
[10:21:26] [Server thread/INFO]: [UhcCore] Start loading kits
[10:21:26] [Server thread/INFO]: [UhcCore] Loaded 0 kits
[10:21:26] [Server thread/INFO]: [UhcCore] Loading banned crafts list
[10:21:26] [Server thread/INFO]: [UhcCore] Loading custom crafts
[10:21:27] [Server thread/WARN]: [UhcCore] Task #30 for UhcCore v1.19.3 generated an exception
java.lang.RuntimeException: Version v1_17_R1 is not supported!
        at com.pieterdebot.biomemapping.BiomeMappingAPI.getWrapper(BiomeMappingAPI.java:83) ~[?:?]
        at com.pieterdebot.biomemapping.BiomeMappingAPI.<init>(BiomeMappingAPI.java:25) ~[?:?]
        at com.gmail.val59000mc.maploader.MapLoader.replaceOceanBiomes(MapLoader.java:357) ~[?:?]
        at com.gmail.val59000mc.maploader.MapLoader.loadWorlds(MapLoader.java:70) ~[?:?]
        at com.gmail.val59000mc.game.GameManager.loadNewGame(GameManager.java:241) ~[?:?]
        at com.gmail.val59000mc.UhcCore.lambda$onEnable$0(UhcCore.java:25) ~[?:?]
        at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:81) ~[server.jar:3159-Spigot-f773da8-887bc05]
        at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:400) ~[server.jar:3159-Spigot-f773da8-887bc05]
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1252) ~[server.jar:3159-Spigot-f773da8-887bc05]
        at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:436) ~[server.jar:3159-Spigot-f773da8-887bc05]
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1200) ~[server.jar:3159-Spigot-f773da8-887bc05]
        at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1027) ~[server.jar:3159-Spigot-f773da8-887bc05]
        at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:307) ~[server.jar:3159-Spigot-f773da8-887bc05]
        at java.lang.Thread.run(Thread.java:831) [?:?]

Version of Spigot: 3159-Spigot-f773da8-887bc05 (MC: 1.17) (Implementing API version 1.17-R0.1-SNAPSHOT)
Full Log: https://paste.md-5.net/zerosatiji

Disable anticheat while players are teleporting

My server uses NCP with CaptainObvious's config, and sometimes players get kicked for flying / speed during teleportation. Is it at all possible to disable the anticheat while players are being tp'd?

Server gets stuck on `Loading ...`

Server is stuck having Loading ... in MOTD and unable to connect, no matter how long I leave it running.
Using git-Paper-599. No other plugins or anything, clean install; tried both Java 11 and Java 15 (OpenJDK).
latest.log
System Info: Java 15 (OpenJDK 64-Bit Server VM 15.0.2+7) Host: Linux 5.11.4-rt11-1-rt (amd64)
How would I fix this?

Game ended before last kill

We had the plugin stop the uhc with 3 player remaining and team of 1 player max.
Ending message was: team 1 won.

Weakest Link scenario doesn't kill players with absorption hearts

When killing the player with the lowest health the scenario only damages the regular health (not absorption hearts) and allows players to survive if they have any extra absorption hearts.

The fix would simply be to add the amount of absorption health to the damage that is given to the player.
Sketch code that doesn't actually work in 1.8:

player.damage(player.getHealth + player.getAbsorptionAmount);

Temporary fix in PR #58

Install schematic

How could I install the schematic to the world edit to clean the 0,0

Unable to create custom lobby with schematic.

I put my "lobby.schematic" on 'plugins/PlayUHC', first tried with the schem copied from MC Edit, and didnt work, and i though, "maybe its because i didnt do it with worldedit", so i copied it from WorldEdit and didnt work either.

Plugins installed are WorldEdit 7.0.0 beta 04, PlayUHC and WorldBorder.

Here is my console log.

[Server thread/WARN]: [PlayUHC] Task #2 for PlayUHC v1.9.3 generated an exception
java.lang.NoClassDefFoundError: com/sk89q/worldedit/LocalWorld
at com.gmail.val59000mc.playuhc.mc1_13.schematics.Lobby.build(Lobby.java:50) ~[?:?]
at com.gmail.val59000mc.playuhc.mc1_13.game.GameManager.loadWorlds(GameManager.java:279) ~[?:?]
at com.gmail.val59000mc.playuhc.mc1_13.game.GameManager.startWaitingPlayers(GameManager.java:183) ~[?:?]
at com.gmail.val59000mc.playuhc.mc1_13.game.GameManager.loadNewGame(GameManager.java:157) ~[?:?]
at com.gmail.val59000mc.playuhc.PlayUhc$1.run(PlayUhc.java:30) ~[?:?]
at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftTask.run(CraftTask.java:81) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:391) [spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:888) [spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417) [spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:830) [spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:728) [spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_181]
Caused by: java.lang.ClassNotFoundException: com.sk89q.worldedit.LocalWorld
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_181]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:134) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:80) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_181]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_181]
... 12 more

Solo

Hello, how do I do solos?

PreStart countdown discrepancy

The text for the game start countdown is "Starting in %time% seconds."

GAME_STARTING_IN = getString(lang, "game.starting-in", "Starting in %time% seconds.");

This combined with the use of formatted time in PreStartThread results in weird redundant text like "Starting in 10s seconds." (ten seconds seconds?)
gm.broadcastInfoMessage(Lang.GAME_STARTING_IN.replace("%time%", ""+ TimeUtils.getFormattedTime(remainingTime)));

This is also differs from the rest of the countdown which does not use TimeUtils.getFormattedTime substituted into the same string.
gm.broadcastInfoMessage(Lang.GAME_STARTING_IN.replace("%time%", ""+remainingTime));

This looks like unintended behaviour that could be fixed by making the first PreStart message not use TimeUtils.getFormattedTime.

1.19.1 Pregen World doesn't work

So when you set pregen-world to enable it does not pre-gen the world and skips to "ready for players" when it's not.

Here is my config.yml
The config.yml will expire in 6 months.

I have no clue why this won't pregen like older versions like in 1.18.x

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.