GithubHelp home page GithubHelp logo

wikmor / lpc Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 27.0 27 KB

A chat formatting plugin for LuckPerms.

Home Page: https://www.spigotmc.org/resources/lpc.68965

License: The Unlicense

Java 100.00%
bukkit-plugin java minecraft minecraft-plugin spigot-plugin

lpc's People

Contributors

bertek41 avatar bukkitsmurf avatar srnyx avatar wikmor 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

Watchers

 avatar  avatar

lpc's Issues

Placeholders stoped working when updated server version from 1.19 to 1.19.2

upgrading server version from 1.19 to 1.19.2 placeholders get broken and this is what happens in console and in game this is what happens.
It may have something to do with the chat reporting
Plugins that are used with LPC and all are at latest version:

  1. ItemsAdder
  2. TAB (by NEZNAMY)
  3. DiscordSRV
  4. PlaceholdersAPI
    Also i checked ItemsAdder plugin's placeholders with PlaceholdersAPI and yes they show correctly

Server version: git-Paper-166 (MC: 1.19.2) (Implementing API version 1.19.2-R0.1-SNAPSHOT)

In game:
https://i.imgur.com/0aUdg3U.png

on console:
https://i.imgur.com/KAq77Qf.png

LPC for paper

Even if it works great on paper, it doesn't use it's possibilities, so maybe you could make another plugin, with the same functionality, which uses minimessages, and maybe other paper api
like there already are people who would like to see hover texts in their prefixes, and other
since your plugin tends to be extremely small and lightweight, i don't think it's worth to make that plugin support both

Parties

hello your plugin conflicts with party plugin. I am using lucky perms chat and it conflicts parties plugin
image

duplicate messages

chat IC
image

console
image

duplicate messages, removing lpc this problem does not exist

Chat Delay

Greetings, we are recently experiencing a chat delay of two seconds, I tried to remove LPC temporarly and then the Chat worked normal again. Would be awesome if we could get help with this.

Placeholder for time

Is there any method i can get realtime to chat ? like some placeholder for time ?

Built-in placeholders issue

The placeholder '{message}' is not being overwritten by colors on latest version.
{message-color}, &c, and hex colors do not effect this issue at all.

License

Need to know if I'm allowed to redistribute this for some open-source & free server templates I'm making.

Update

Hello i updatet the versions in your LPC to the newest versions.
Luckperms 5.3
Placeholderapi 2.11.1
maybe you should update that to in your pom file same for the spigot api to 1.18.1

Lack of documentation, machine specific configuration

There is no readme file. Preferably this would include a small explanation of the program, as well as documentation on how to build the program(or at least what build system is in use).

The code has no comments whatsoever, this is a low priority since the code isn't too long.

The build system configuration file seems to have machine-specific paths/options
C:\Users\Wiktor\Desktop\1.16.4

It also appears to be at least partially optimised to build on Windows machines, despite the fact that over 85% of Bukkit/Spigot servers reporting to bStats run GNU/Linux while only about 11% run windows.

Messages

When i use color for the message. Like &4{message} and the message color is white

[!uestion]

Hello!
I've been using this plugin for over a year now and it's spectacular!
But I have a question to see if you can answer me.
There is an option in EssentialsX that allows you to change the player's nickname within the server, but since LPC is on, it doesn't change the player's nickname.
Would there be a way to see the nicknames assigned by EssentialX in the chat?

"TIP: EssentialsX Commands /nick Jimmy"
Thanks!

Custom Unicode prefix dosn´t workin

This Config not working in my config.yml.

group-formats:[/B][/B][/B][/B][/B][/B][/B][/B][/B]
[B][B][B][B][B][B][B][B][B]#  default: "[default] {name}&r: {message}"[/B][/B][/B][/B][/B][/B][/B][/B][/B]
[B][B][B][B][B][B][B][B][B]  admin: "\uEffa &7{name}&r: {message}"

Have errors in the console:

20:04:22] [Server thread/ERROR]: Cannot load plugins/LPC/config.yml
org.bukkit.configuration.InvalidConfigurationException: mapping values are not allowed here
 in 'string', line 25, column 37:
    [B][B][B][B][B][B][B][B][B]# default: "[default] {name}&r: {message} ... 
                                        ^

	at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:59) ~[patched_1.17.1.jar:git-Paper-325]
	at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:160) ~[patched_1.17.1.jar:git-Paper-325]
	at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:128) ~[patched_1.17.1.jar:git-Paper-325]
	at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:188) ~[patched_1.17.1.jar:git-Paper-325]
	at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:158) ~[patched_1.17.1.jar:git-Paper-325]
	at me.oncode9.lpc.LPCPlugin.onCommand(LPCPlugin.java:40) ~[LPC.jar:?]
	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.17.1.jar:git-Paper-325]
	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.17.1.jar:git-Paper-325]
	at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchCommand(CraftServer.java:852) ~[patched_1.17.1.jar:git-Paper-325]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCommand(ServerGamePacketListenerImpl.java:2257) ~[app:?]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.handleChat(ServerGamePacketListenerImpl.java:2068) ~[app:?]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.handleChat(ServerGamePacketListenerImpl.java:2049) ~[app:?]
	at net.minecraft.network.protocol.game.ServerboundChatPacket.handle(ServerboundChatPacket.java:46) ~[app:?]
	at net.minecraft.network.protocol.game.ServerboundChatPacket.handle(ServerboundChatPacket.java:6) ~[app:?]
	at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:56) ~[app:?]
	at net.minecraft.server.TickTask.run(TickTask.java:18) ~[patched_1.17.1.jar:git-Paper-325]
	at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:149) ~[app:?]
	at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:23) ~[app:?]
	at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1418) ~[patched_1.17.1.jar:git-Paper-325]
	at net.minecraft.server.MinecraftServer.shouldRun(MinecraftServer.java:192) ~[patched_1.17.1.jar:git-Paper-325]
	at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:122) ~[app:?]
	at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1396) ~[patched_1.17.1.jar:git-Paper-325]
	at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1389) ~[patched_1.17.1.jar:git-Paper-325]
	at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:132) ~[app:?]
	at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1367) ~[patched_1.17.1.jar:git-Paper-325]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1278) ~[patched_1.17.1.jar:git-Paper-325]
	at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Paper-325]
	at java.lang.Thread.run(Thread.java:831) ~[?:?]
Caused by: org.yaml.snakeyaml.scanner.ScannerException: mapping values are not allowed here
 in 'string', line 25, column 37:
    [B][B][B][B][B][B][B][B][B]# default: "[default] {name}&r: {message} ... 
                                        ^

	at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:890) ~[patched_1.17.1.jar:git-Paper-325]
	at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:379) ~[patched_1.17.1.jar:git-Paper-325]
	at org.yaml.snakeyaml.scanner.ScannerImpl.peekToken(ScannerImpl.java:271) ~[patched_1.17.1.jar:git-Paper-325]
	at org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentEnd.produce(ParserImpl.java:286) ~[patched_1.17.1.jar:git-Paper-325]
	at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:165) ~[patched_1.17.1.jar:git-Paper-325]
	at org.yaml.snakeyaml.comments.CommentEventsCollector$1.peek(CommentEventsCollector.java:59) ~[patched_1.17.1.jar:git-Paper-325]
	at org.yaml.snakeyaml.comments.CommentEventsCollector$1.peek(CommentEventsCollector.java:45) ~[patched_1.17.1.jar:git-Paper-325]
	at org.yaml.snakeyaml.comments.CommentEventsCollector.collectEvents(CommentEventsCollector.java:140) ~[patched_1.17.1.jar:git-Paper-325]
	at org.yaml.snakeyaml.comments.CommentEventsCollector.collectEvents(CommentEventsCollector.java:119) ~[patched_1.17.1.jar:git-Paper-325]
	at org.yaml.snakeyaml.composer.Composer.composeScalarNode(Composer.java:221) ~[patched_1.17.1.jar:git-Paper-325]
	at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:191) ~[patched_1.17.1.jar:git-Paper-325]
	at org.yaml.snakeyaml.composer.Composer.getNode(Composer.java:115) ~[patched_1.17.1.jar:git-Paper-325]
	at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:146) ~[patched_1.17.1.jar:git-Paper-325]
	at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:151) ~[patched_1.17.1.jar:git-Paper-325]
	at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:490) ~[patched_1.17.1.jar:git-Paper-325]
	at org.yaml.snakeyaml.Yaml.load(Yaml.java:416) ~[patched_1.17.1.jar:git-Paper-325]
	at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:57) ~[patched_1.17.1.jar:git-Paper-325]
	... 27 more

Color codes/rgb permission doesn't work as it should be

Hey, I set the permissions for my default rank to not having color codes and RGB so they can't abuse it.
I did it and it still works for the default rank.
The permissions I gave them:
lpc.colorcodes - false
lpc.rgbcodes - false

no message in console

in mc it works normal
image
but in console is just a blank line
[23:09:39 INFO]: [Not Secure] • TECHNIK czychuuu >>

HEX COLORS

Im using airplane 1.17.1 mc server

https://prnt.sc/M1Nx-z4CyZJX

Hex Color Not good work always looking purple

Config Settings:

mimar: ":mimar: &r&6{name} &8▸&r &f{message}"
and
mimar: ":mimar: &r&#65B8CA{name} &8▸&r &f{message}"

Add Separation

Add the ability to enable and disable the global chat (G) and local chat (L) This will be extremely useful in comparison with other plugins that do not know how to work with the prefix

Towny can't modify chat

Sometimes, LPC doesn't allow other plugins to modify chat, for example, in Towny, when you're talking in a different channel, there isn't a town tag

Factionsuuid Relation placeholder

is there any chance to make LPC support Factionsuuid relation placeholder?
like: %rel_factionsuuid_relation_color%

Bc it only work at plugins that supports PlaceholderAPI relational placeholders. so it wont work on LPC since it does not support this placeholder, it will only show %rel_factionsuuid_relation_color% in chat.

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.