28 lines
549 B
Markdown
28 lines
549 B
Markdown
# untest2.js — main() (satır 59)
|
||
|
||
[← untest2.js](index.md) · [← Master](../../wiki.md)
|
||
|
||
```javascript
|
||
function main(c)
|
||
{
|
||
var player = c.getSubject();
|
||
|
||
if (player == null || !player.isPlayer())
|
||
{
|
||
return;
|
||
}
|
||
|
||
var blindness = mappet.getPotion("blindness");
|
||
|
||
if (blindness != null && player.hasPotion(blindness))
|
||
{
|
||
player.removePotion(blindness);
|
||
}
|
||
|
||
mappet.set("grey_world_" + player.getUniqueId(), false);
|
||
|
||
sendFog(player, false);
|
||
clearSky(player);
|
||
}
|
||
```
|