Comments (6)
@zml2008 I like a lot of this, but for the command blocks I think the proposals are flawed. Command block names are also used by some maps (mostly older) to indicate who is saying the /say command from the command block.
Moving forward /tellraw will solve that problem, but we still have many maps with /say and named command blocks would be confusing with permissions.
As long as you address that smallish issue I'm perfectly fine with using the name of the command block.
from spongeforge.
well Sponge is set up so that default permissions match what commands are allowed to vanilla users by default, meaning that any named command block could execute /say. Is that the issue you were worried about?
from spongeforge.
I think so.
from spongeforge.
Well players are identified by their uuid?
And we could use a prefix for command blocks.
@CMDB_<Name>
This guarantees that there will never be collisions between players and commandblocks.
As an alternative we could add a getType method to CommandSource/Subject and leave it to the permission service to deal with it properly. This method would also help for commands whether it can be executed from that source. Ex Arena join is only available to Players regardless of permissions.
from spongeforge.
@ST-DDT I suggest looking at how the permissions api actually works before commenting on issues relating to it.
And for your last example, that's what source instanceof Player
is for.
from spongeforge.
This is implemented with PR #215
from spongeforge.
Related Issues (20)
- Extreme lag when SpongeProfileManager.get() is called on server thread HOT 1
- Constant spam to the console with a unknown error
- No armor HOT 1
- [Server thread/WARN] [Sponge]: /* Could not pass ClientConnectionEvent$Join$Impl HOT 1
- Error with customNPCs and Sponge HOT 1
- Sponge Forge Error
- How to disable SpongeForge mod while I only want use Forge on a panel server HOT 1
- Terrafirmacraft pit kiln does not work with spongeforge
- 1.12.2-2838-7.4.7 crash in pure forge-2838 server-end when start-up. HOT 2
- Crash of the server when loading the Sponge app.
- Crash it has somethig to do with rail
- SpongeForge crash when breaking a bed
- Tekkit 2 Railcraft incompatible with SpongeForge 1.12.2
- I could not download the "Sponge-librarys", it views "Failed to download library" when i run the bat. HOT 2
- Sponge error in the end of world gen
- SecurityCraft Incompatibility Crash
- Armor has no effect
- SpongeForge causes extreme tick lag when used with lucraft: core and sometimes crashes the server depending on the lucraft addonpack used
- Server crashes upon start HOT 1
- Constant error messages causing heavy CPU overhead
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spongeforge.