GithubHelp home page GithubHelp logo

gunpowder-mc / gunpowderutilities Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 115 KB

License: MIT License

Java 31.66% Kotlin 68.34%
gunpowder gunpowder-module fabric minecraft utilities invsee vanish essentials

gunpowderutilities's Introduction

GunpowderTemplate

Template for creating Gunpowder modules

gunpowderutilities's People

Contributors

itsilya avatar martmists-gh avatar samolego avatar yhr0x43 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

gunpowderutilities's Issues

Downloading the mod

Hey! Sorry if this is the wrong place to ask but how do i actually get the mod? I'm new to github so i may just be blind but the only thing i can download is a .zip file

/fly or /flight don't work

Information

  • Minecraft Version: 1.16.2
  • Fabric API Version: 0.20.1+build.401-1.16
  • OS: Windows
  • Other installed mods:
Mod list
Cardinal-Components-API-2.6.0
fastfurnace-2.3
lithium-fabric-mc1.16.2-0.5.4
commandspy-1.0.5-1.16.2
gunpowder-base-0.2.10+1.16.2
phosphor-fabric-mc1.16.1-0.6.0-SNAPSHOT
gunpowder-teleport-1.0.1+gunpowder.0.2.9.mc.1.16.2
PlayerAbilityLib-1.2.1
fabric-carpet-1.16.2-1.4.9+v200815
gunpowder-utilities-1.0.1+gunpowder.0.2.9.mc.1.16.2
player-roles-1.1.0
fabric-language-kotlin-1.4.0+build.1
image2map-0.1.1
Silky-Spawners-1.0-SNAPSHOT+custom-1.16
fabrictailor-1.2.0-1.16.2
InvView-1.16.2-1.0.1
SimpleAuthfastbench-2.3
keepinventory-command-0.3.1
simpleauth-1.5.2-1.16.2

Describe the issue
/fly and /flight don't work, and have no affect on the player's ability to fly.

To Reproduce
Steps to reproduce the behavior:

  1. Be in survival mode. Being an operator or not has no effect on this bug.
  2. Use /fly or /flight to toggle flight off.
  3. You fall to the ground (without taking damage), and the message "Successfully toggled flight" appears in chat.
  4. Players can still fly, it's not actually disabled for some reason.

Expected behavior
/fly and/or /flight (it's not clear what the difference is) should actually disable, and prevent players from flying.

Additional context
N/A (I will update with the results of testing with just Gunpowder)

Incompatibility with Taterzens

Hi there, I've been reported that Taterzens mod is incompatible with Gunpowder Utilities.

The problem is that PlayerListS2CPacketMixin_Utilities#skipVanished doesn't check if player is null before checking if it's vanished. (

((PlayerVanish) GunpowderMod.getInstance().getServer().getPlayerManager().getPlayer(entry.getProfile().getId())).isVanished()
)

In case of Taterzen, PlayerListS2CPacket is a fake one, so there's no player behind the packet, thus it crashes in network thread (I assume it's NPE for above reasons).
This is kinda my fault since if I remember correctly, that mixin was part of my vanish PR ๐Ÿ˜„ .

If you'd like, I can add a simple not null check in #6

Problems with vanish

This issue tracks problems with the vanish implementation.

  • Commands that broadcast the user (like /gamemode) still broadcast the user if vanished
  • Vanished players in Spectator mode still have collision and cannot move through any blocks

[Feature request] /position, /seen, /tempban

I would like to request the addition of three commands for server operators, inspired in commands found in the plugin EssentialsX, ordered here in order of importance/relevance for my server:
/position
This command would report the coordinates and dimension of any player currently connected to the server. If no player name is specified, it would default to the user.
Format: /position [playername]
Sample output:

[23:27:20] [Server thread/INFO]: CONSOLE issued server command: /position {PLAYER1}
[23:27:20] [Server thread/INFO]: Current World: world
[23:27:20] [Server thread/INFO]: X: 4,114 (+East <-> -West)
[23:27:20] [Server thread/INFO]: Y: 89 (+Up <-> -Down)
[23:27:20] [Server thread/INFO]: Z: 1,866 (+South <-> -North)
[23:27:20] [Server thread/INFO]: Yaw: 235.365 (Rotation)
[23:27:20] [Server thread/INFO]: Pitch: 28.2 (Head angle)

/seen
This command would report the time that has passed since a player logged out of the server, along with their current position.
Format: /seen <playername>
Sample output:

[02:05:32] [Server thread/INFO]: JuergenSchT issued server command: /seen {PLAYER2}
[02:05:32] [Server thread/INFO]: /seen
[21:05:31] [Render thread/INFO]: [CHAT] Player {PLAYER2} has been offline since 1 hour 22 minutes 13 seconds.
[21:05:31] [Render thread/INFO]: [CHAT]  - IP Address: xxx.xx.xx.xxx
[21:05:31] [Render thread/INFO]: [CHAT]  - Location: (world, -1,723, 63, 1,061)

/tempban
This command would ban a player currently connected to the server for a set amount of time, and after that, automatically unban them.
Format: /tempban <playername> <datediff> [reason]
Sample output:

[18:54:36] [Server thread/INFO]: CONSOLE issued server command: /tempban {PLAYER1} 8h "hora de DnD, bastardo"
[18:54:36] [Server thread/INFO]: Player Console temporarily banned {PLAYER1} for 8 hours: hora de DnD, bastardo.
[18:54:54] [Server thread/INFO]: CONSOLE issued server command: /tempban {PLAYER3} 4h "hora de DnD, bastardo"
[18:54:54] [Server thread/INFO]: Player Console temporarily banned {PLAYER3} for 4 hours: hora de DnD, bastardo.
[18:55:05] [Server thread/INFO]: CONSOLE issued server command: /tempban {PLAYER2} 4h "hora de DnD, bastardo"
[18:55:05] [Server thread/INFO]: Player Console temporarily banned {PLAYER2} for 4 hours: hora de DnD, bastardo.

The above commands' names (and any possible aliases) could be changed if the situation required it.
Thanks for listening.

Feature request: /jail

Jailing is useful for servers that want an alternative method for punishing players. For example on my server we jail players, and players can appeal for a second chance to play.

Jailing does a few simple things:

  1. Teleports the player to a specified jail cell, even if offline
  2. The player is then unable to break blocks/interact with the world or do essentials commands (not being able to break blocks/interact is the main important part)
  3. If the player manages to die, they respawn in the cell.
  4. When unjailed, the player is teleported out of the cell (with EssentialsX however, if they are offline then they aren't teleported out for some reason), and their respawn point is set back to default, and they are able to interact with the world again.

The jailing commands in EssentialsX are as follows:
/jail [PlayerName] [CellName] [time] (jails a specified player, if no time is given then it is permanent until unjail command is used)
/unjail [PlayerName] [CellName] (unjails specified player)
/createjail [CellName] (creates a new jail cell)
/deljail [CellName] (deletes a jail cell)
/jails (view a list of all jail cells)

I am eager to use Fabric and so I make do without these commands, but it would be highly convenient to have them, especially for servers that primarily jail instead of ban like my own.

Startup warning

THIS IS NOT AN URGENT ISSUE! NO CRASH IS BEING CAUSED BY THIS!
[15:30:01] [main/WARN]: @Mixin target net/minecraft/class_3898$class_3208 is public in mixins.utilities.gunpowder.json:EntityTrackerAccessor_Utilities and should be specified in value

Server Doesn't Start

Fabric 1.16.2 Server
Mods: Fabric API, Gunpowder Base, Gunpowder Utilities, Fabric Language Kotlin

Didn't generate crash report. Here is the log:
latest.log

Invsee command doesn't work

When I use the /invsee command to see other players' inventories, it shows briefly, then closes. When I /invsee myself, this does not happen.

Feature Request: Disable commands

Hello, I really only need the administrative commands for occasional use and would love the ability to just disable the others. Carpet does this using gamerules, allowing me to set to "true" to allow anyone, "ops" to be op-only, and "false" to disable commands.

I would very much appreciate this ability.

Workbench command is non-functional

Information

  • Minecraft Version: 1.16.2
  • Fabric API Version: 0.20.1+build.401-1.16
  • OS: Windows
  • Other installed mods:
Mod list
fabric-api-0.20.1+build.401-1.16.jar
fabric-language-kotlin-1.4.0+build.1.jar
gunpowder-base-0.2.10+1.16.2.jar
gunpowder-utilities-1.0.1+gunpowder.0.2.9.mc.1.16.2.jar
Pal-1.2.1.jar

Describe the issue
When using /workbench, the GUI opens as expected. Inserting items into the crafting slots however, yields no output. Shift-clicking the recipes also does nothing. Additionally, if players close the GUI (using the Esc key, opening their inventory, etc), the items are deleted and not returned to the player.

To Reproduce
Steps to reproduce the behavior:

  1. Be in survival mode, with at least 1 craftable item (/give @s minecraft:oak_log).
  2. Use /workbench or /wb.
  3. Place the item in the crafting GUI, either manually or with the recipe book.
    -> โŒ Nothing is displayed in the output slot, and you cannot craft.
  4. Close the GUI without removing the item from the crafting slot (ex. press Esc).
    -> โŒ The item is not returned to the player, but deleted.

Expected behavior
The crafting table command should behave like a physical crafting table.

Additional context
I realize that you've been very busy and Gunpowder has been on hold for a few months. I'm just documenting this issue so that you are aware of it. Thank you!

/speed command changing fov only

Information

Minecraft Version: [1.16.1]
Fabric API Version: [0.8.9+build.203-1.16.1]
OS: [Windows 10]
Other installed mods:
image

Describe the issue
When using the command /speed only the fov changes in a weird way, let me explain: if you would do /speed 10 {playername} your fov would shrink dramatically and the playerspeed would not change as shown in this screenshot
image
When you write the command /speed 0.001 {playername} the same would occur, but now the fov is bigger as shown in the screenshot below
image

Crash/Error logs
No errors present

To Reproduce
Steps to reproduce the behavior:

  1. Type in /speed 10 {playername} or any other speed value
  2. Result is fov change but no speed change

Expected behavior
I expect it to change my players speed and fov correctly

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.